* elflink.h (elf_link_add_object_symbols): Only set weakdef to a
authorIan Lance Taylor <ian@airs.com>
Mon, 29 Jan 1996 18:09:20 +0000 (18:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 29 Jan 1996 18:09:20 +0000 (18:09 +0000)
real defined symbol, not to a weak defined symbol.

bfd/ChangeLog
bfd/elflink.h

index 70bc39a23cdc93dfc4b3c1d4c490368ef2422729..16313a51ff6399cbb608224668446e2b1c9edc32 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jan 29 13:06:28 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
+       real defined symbol, not to a weak defined symbol.
+
 Mon Jan 29 11:34:36 1996  Kim Knuttila  <krk@cygnus.com>
 
        * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
index a6e0f962e31f47f160a966d47cde1bc995bfd174..c656ac12303585efa36ab13fbfdef92b18432abc 100644 (file)
@@ -868,8 +868,7 @@ elf_link_add_object_symbols (abfd, info)
 
          h = *hpp;
          if (h != NULL && h != hlook
-             && (h->root.type == bfd_link_hash_defined
-                 || h->root.type == bfd_link_hash_defweak)
+             && h->root.type == bfd_link_hash_defined
              && h->root.u.def.section == slook
              && h->root.u.def.value == vlook)
            {