diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-02-28 04:12:07 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-02-28 04:12:07 +0000 |
commit | e316f51498098c3a236f178d03224b0dafc5ea5e (patch) | |
tree | b7ead1e57ecd8a2595a362fd00cdb28910f1fc94 /bfd | |
parent | a66a61a0a2c16e478237752f8212e01814fef0e9 (diff) | |
download | gdb-e316f51498098c3a236f178d03224b0dafc5ea5e.zip gdb-e316f51498098c3a236f178d03224b0dafc5ea5e.tar.gz gdb-e316f51498098c3a236f178d03224b0dafc5ea5e.tar.bz2 |
* 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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 21 | ||||
-rw-r--r-- | bfd/elflink.h | 3 |
2 files changed, 22 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6eb6dda..422afa4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/elflink.h b/bfd/elflink.h index 3218ac3..c1dd8b3 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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. */ |