fix detection of common symbols.
This commit is contained in:
parent
c4093a6ab3
commit
ceddadb217
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue