fix detection of common symbols.
This commit is contained in:
parent
c4093a6ab3
commit
ceddadb217
|
@ -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>
|
1999-12-10 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* elflink.h (elf_link_is_defined_archive_symbol): New
|
* elflink.h (elf_link_is_defined_archive_symbol): New
|
||||||
|
|
|
@ -161,7 +161,9 @@ elf_link_is_defined_archive_symbol (abfd, symdef)
|
||||||
{
|
{
|
||||||
result =
|
result =
|
||||||
(ELF_ST_BIND (sym.st_info) == STB_GLOBAL)
|
(ELF_ST_BIND (sym.st_info) == STB_GLOBAL)
|
||||||
&& (sym.st_shndx != SHN_UNDEF);
|
&& (sym.st_shndx != SHN_UNDEF)
|
||||||
|
&& (sym.st_shndx != SHN_COMMON)
|
||||||
|
;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue