From ceddadb21773b9a3a201383e45eb6c2b7b25aa2f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 14 Dec 1999 02:20:57 +0000 Subject: [PATCH] fix detection of common symbols. --- bfd/ChangeLog | 5 +++++ bfd/elflink.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fe9136843f..44467d9bac 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-12-13 Nick Clifton + + * elflink.h (elf_link_is_defined_archive_symbol): Check to see + if the symbol is in the common section. + 1999-12-10 Nick Clifton * elflink.h (elf_link_is_defined_archive_symbol): New diff --git a/bfd/elflink.h b/bfd/elflink.h index 6e21a1fd8f..9a4974fb5d 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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; } } -- 2.34.1