* aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
authorIan Lance Taylor <ian@airs.com>
Fri, 28 Feb 1997 04:12:07 +0000 (04:12 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 28 Feb 1997 04:12:07 +0000 (04:12 +0000)
rather than comparing against info->lprefix.
* cofflink.c (_bfd_coff_link_input_bfd): Likewise.
* elflink.h (elf_link_input_bfd): Likewise.
* linker.c (_bfd_generic_link_output_symbols): Likewise.
* xcofflink.c (xcoff_link_input_bfd): Likewise.

bfd/ChangeLog
bfd/elflink.h

index 6eb6dda288ca2628cfbed747e50570477d031006..422afa49a8360a899e0158ecba2c1887a2b9e88e 100644 (file)
@@ -1,5 +1,26 @@
 Thu Feb 27 18:36:23 1997  Ian Lance Taylor  <ian@cygnus.com>
 
+       * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
+       rather than comparing against info->lprefix.
+       * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
+       * elflink.h (elf_link_input_bfd): Likewise.
+       * linker.c (_bfd_generic_link_output_symbols): Likewise.
+       * xcofflink.c (xcoff_link_input_bfd): Likewise.
+
+       * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
+       _bfd_elf_is_local_label_name if not already defined.
+       * elf.c (_bfd_elf_is_local_label_name): New function.
+       * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
+
+       * coff-m88k.c (coff_bfd_is_local_label_name): Define.
+       (m88k_is_local_label_name): New static function.
+
+       * coffcode.h (coff_bfd_is_local_label_name): Define as
+       _bfd_coff_is_local_label_name if not already defined.
+       * coffgen.c (_bfd_coff_is_local_label_name): New function.
+       * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
+       * libcoff.h: Rebuild.
+       
        * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
        to _bfd_is_local_label_name.
        (bfd_target): Likewise.
index 3218ac3d4b4a87fde320b6fbf03b466be8ba50ee..c1dd8b363cf40bf86eeadc5ff8e96e9f0ac9e8de 100644 (file)
@@ -3886,8 +3886,7 @@ elf_link_input_bfd (finfo, input_bfd)
           && (bfd_hash_lookup (finfo->info->keep_hash, name, false, false)
               == NULL))
          || (finfo->info->discard == discard_l
-             && strncmp (name, finfo->info->lprefix,
-                         finfo->info->lprefix_len) == 0))
+             && bfd_is_local_label_name (input_bfd, name)))
        continue;
 
       /* If we get here, we are going to output this symbol.  */