fix detection of common symbols.

This commit is contained in:
Nick Clifton 1999-12-14 02:20:57 +00:00
parent c4093a6ab3
commit ceddadb217
2 changed files with 8 additions and 1 deletions

View 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

View 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;
}
}