2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Jul 2003 15:52:44 +0000 (15:52 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Jul 2003 15:52:44 +0000 (15:52 +0000)
* elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
weak symbols.

bfd/ChangeLog
bfd/elflink.c

index 9eb410900be76f829bb08c2812e498f72b2c4309..b3617b250fc98fb657f61d03fe430e14d2d5e389 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-22  H.J. Lu <hongjiu.lu@intel.com>
+
+       * elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
+       weak symbols.
+
 2003-07-22  Nick Clifton  <nickc@redhat.com>
 
        * coffcode.h (coff_slurp_symbol_table): Add C_TCSYM and C_ECOML to
index 322bb3d3fe3e68aeee2b867eecc42da5ebb88979..ea0b8d0cd569d3f8982e9dded08203605d4e1fef 100644 (file)
@@ -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;
     }