diff options
author | Ian Lance Taylor <ian@airs.com> | 2000-02-22 08:06:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2000-02-22 08:06:01 +0000 |
commit | 9f6cc03593d084394f30e10cb705b210bce986a8 (patch) | |
tree | 40b884b867877e7241ec9eede24b3e0e200e9513 | |
parent | 0b9f46c1cef0a3f19d85ae540dfbb0f56989ba74 (diff) | |
download | gdb-9f6cc03593d084394f30e10cb705b210bce986a8.tar.gz |
2000-02-22 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_add_object_symbols): If a version symbol is
not defined, don't add a second ELF_VER_CHR.
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/elflink.h | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index da0d94da03b..5d4d4a2fe64 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -5,6 +5,9 @@ 2000-02-22 H.J. Lu <hjl@gnu.org> + * elflink.h (elf_link_add_object_symbols): If a version symbol is + not defined, don't add a second ELF_VER_CHR. + * elflink.h (elf_bfd_final_link): Call output_extsym for global symbols converted to local symbols even when stripping all symbols. diff --git a/bfd/elflink.h b/bfd/elflink.h index 00037b38a98..6acb790196b 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1444,7 +1444,11 @@ elf_link_add_object_symbols (abfd, info) strcpy (newname, name); p = newname + namelen; *p++ = ELF_VER_CHR; - if ((iver.vs_vers & VERSYM_HIDDEN) == 0) + /* If this is a defined non-hidden version symbol, + we add another @ to the name. This indicates the + default version of the symbol. */ + if ((iver.vs_vers & VERSYM_HIDDEN) == 0 + && sym.st_shndx != SHN_UNDEF) *p++ = ELF_VER_CHR; strcpy (p, verstr); |