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.
This commit is contained in:
Ian Lance Taylor
2000-02-22 08:06:01 +00:00
parent b985eaa839
commit 1287d1cc37
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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);