From e316f51498098c3a236f178d03224b0dafc5ea5e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 28 Feb 1997 04:12:07 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 21 +++++++++++++++++++++ bfd/elflink.h | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6eb6dda288c..422afa49a83 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,26 @@ Thu Feb 27 18:36:23 1997 Ian Lance Taylor + * 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 3218ac3d4b4..c1dd8b363cf 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. */ -- 2.30.2