From: H.J. Lu Date: Tue, 22 Jul 2003 15:52:44 +0000 (+0000) Subject: 2003-07-22 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecc27c311f880150773a48ae50062358cbb5bf3e;p=binutils-gdb.git 2003-07-22 H.J. Lu * elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for weak symbols. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9eb410900be..b3617b250fc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 H.J. Lu + + * elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for + weak symbols. + 2003-07-22 Nick Clifton * coffcode.h (coff_slurp_symbol_table): Add C_TCSYM and C_ECOML to diff --git a/bfd/elflink.c b/bfd/elflink.c index 322bb3d3fe3..ea0b8d0cd56 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2519,10 +2519,6 @@ _bfd_elf_dynamic_symbol_p (h, info, ignore_protected) break; default: - /* With STV_DEFAULT, weak symbols do not bind locally. */ - if (h->root.type == bfd_link_hash_undefweak - || h->root.type == bfd_link_hash_defweak) - return TRUE; break; }