aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-12-14 02:20:57 +0000
committerNick Clifton <nickc@redhat.com>1999-12-14 02:20:57 +0000
commitceddadb21773b9a3a201383e45eb6c2b7b25aa2f (patch)
tree2bb9df491a84891eb93f0cfce6b5bb19c15a3fab /bfd
parentc4093a6ab3c9ba5f830ca18d91d8b4db5b1d28ee (diff)
downloadgdb-ceddadb21773b9a3a201383e45eb6c2b7b25aa2f.zip
gdb-ceddadb21773b9a3a201383e45eb6c2b7b25aa2f.tar.gz
gdb-ceddadb21773b9a3a201383e45eb6c2b7b25aa2f.tar.bz2
fix detection of common symbols.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fe91368..44467d9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 6e21a1f..9a4974f 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;
}
}