diff options
author | Nick Clifton <nickc@redhat.com> | 1999-12-14 02:20:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-12-14 02:20:57 +0000 |
commit | ceddadb21773b9a3a201383e45eb6c2b7b25aa2f (patch) | |
tree | 2bb9df491a84891eb93f0cfce6b5bb19c15a3fab /bfd | |
parent | c4093a6ab3c9ba5f830ca18d91d8b4db5b1d28ee (diff) | |
download | gdb-ceddadb21773b9a3a201383e45eb6c2b7b25aa2f.zip gdb-ceddadb21773b9a3a201383e45eb6c2b7b25aa2f.tar.gz gdb-ceddadb21773b9a3a201383e45eb6c2b7b25aa2f.tar.bz2 |
fix detection of common symbols.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.h | 4 |
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; } } |