fix detection of common symbols.
authorNick Clifton <nickc@redhat.com>
Tue, 14 Dec 1999 02:20:57 +0000 (02:20 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 14 Dec 1999 02:20:57 +0000 (02:20 +0000)
bfd/ChangeLog
bfd/elflink.h

index fe9136843f2135270f47283c72bec92a92dbb065..44467d9bac652934adc90d728d61b3723e9f13ee 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-13  Nick Clifton  <nickc@cygnus.com>
+
+       * elflink.h (elf_link_is_defined_archive_symbol): Check to see
+       if the symbol is in the common section.
+
 1999-12-10  Nick Clifton  <nickc@cygnus.com>
 
        * elflink.h (elf_link_is_defined_archive_symbol): New
index 6e21a1fd8f1325552d6a84d4f8604da27ed25132..9a4974fb5dd7770427d6c3cbc71189ffcd664b30 100644 (file)
@@ -161,7 +161,9 @@ elf_link_is_defined_archive_symbol (abfd, symdef)
        {
          result =
            (ELF_ST_BIND (sym.st_info) == STB_GLOBAL)
-           && (sym.st_shndx != SHN_UNDEF);
+           && (sym.st_shndx != SHN_UNDEF)
+           && (sym.st_shndx != SHN_COMMON)
+           ;
          break;
        }
     }