PR ld/1021

PR ld/1031
	* elflink.c (elf_link_add_object_symbols): Also append the version
	name to non-hidden absolute symbols that are functions.
This commit is contained in:
Eric Botcazou 2005-07-16 15:08:14 +00:00
parent 42fa7765a2
commit cc86ff917d
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2005-05-16 Eric Botcazou <ebotcazou@libertysurf.fr>
PR ld/1021
PR ld/1031
* elflink.c (elf_link_add_object_symbols): Also append the version
name to non-hidden absolute symbols that are functions.
2005-07-16 Alan Modra <amodra@bigpond.net.au> 2005-07-16 Alan Modra <amodra@bigpond.net.au>
* elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack

View file

@ -3687,11 +3687,12 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
/* If this is a hidden symbol, or if it is not version /* If this is a hidden symbol, or if it is not version
1, we append the version name to the symbol name. 1, we append the version name to the symbol name.
However, we do not modify a non-hidden absolute However, we do not modify a non-hidden absolute symbol
symbol, because it might be the version symbol if it is not a function, because it might be the version
itself. FIXME: What if it isn't? */ symbol itself. FIXME: What if it isn't? */
if ((iver.vs_vers & VERSYM_HIDDEN) != 0 if ((iver.vs_vers & VERSYM_HIDDEN) != 0
|| (vernum > 1 && ! bfd_is_abs_section (sec))) || (vernum > 1 && (! bfd_is_abs_section (sec)
|| ELF_ST_TYPE (isym->st_info) == STT_FUNC)))
{ {
const char *verstr; const char *verstr;
size_t namelen, verlen, newlen; size_t namelen, verlen, newlen;