* elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
authorIan Lance Taylor <ian@airs.com>
Thu, 26 Jan 1995 21:48:14 +0000 (21:48 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 26 Jan 1995 21:48:14 +0000 (21:48 +0000)
we are using an ELF hash table.

bfd/ChangeLog
bfd/elfcode.h

index 206bdc0cca9df1866086b816a4023a9cfb5d0d8a..a5fb0f66889379db6a9ef4a7105076964a04ca89 100644 (file)
@@ -4,6 +4,9 @@ Thu Jan 26 09:00:12 1995  Steve Chamberlain  <sac@splat>
 
 Thu Jan 26 11:39:21 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
+       we are using an ELF hash table.
+
        * aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P if
        the start address is in the .text section, even if STAT_FOR_EXEC
        is set.  Just use STAT_FOR_EXEC as an additional test.
index a7e12f83e9c74089ac287d607271879381c24609..43a071c6e1b05a524c1a38fbf2d3f613408084e5 100644 (file)
@@ -4339,6 +4339,7 @@ elf_link_add_object_symbols (abfd, info)
          && definition
          && (flags & BSF_WEAK) != 0
          && ELF_ST_TYPE (sym.st_info) != STT_FUNC
+         && info->hash->creator->flavour == bfd_target_elf_flavour
          && (*sym_hash)->weakdef == NULL)
        {
          /* Keep a list of all weak defined non function symbols from