* elf64-ppc.c (update_plt_info): Don't mark new ABI call syms

with is_func.
	(func_desc_adjust): Force dot-syms local in executables as well
	as shared libs.
This commit is contained in:
Alan Modra 2005-03-05 11:44:14 +00:00
parent 635ddbfb5b
commit 93f3fa9956
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2005-03-05 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
with is_func.
(func_desc_adjust): Force dot-syms local in executables as well
as shared libs.
2005-03-04 David Daney <ddaney@avtrex.com> 2005-03-04 David Daney <ddaney@avtrex.com>
* elfxx-mips.c (mips_elf_calculate_relocation): Handle special * elfxx-mips.c (mips_elf_calculate_relocation): Handle special

View File

@ -4213,7 +4213,9 @@ update_plt_info (bfd *abfd, struct ppc_link_hash_entry *eh, bfd_vma addend)
} }
ent->plt.refcount += 1; ent->plt.refcount += 1;
eh->elf.needs_plt = 1; eh->elf.needs_plt = 1;
eh->is_func = 1; if (eh->elf.root.root.string[0] == '.'
&& eh->elf.root.root.string[1] != '\0')
eh->is_func = 1;
return TRUE; return TRUE;
} }
@ -5486,12 +5488,10 @@ func_desc_adjust (struct elf_link_hash_entry *h, void *inf)
been imported from another library. Function code syms that been imported from another library. Function code syms that
are really in the library we must leave global to prevent the are really in the library we must leave global to prevent the
linker dragging in a definition from a static library. */ linker dragging in a definition from a static library. */
force_local force_local = (!fh->elf.def_regular
= (info->shared || fdh == NULL
&& (!fh->elf.def_regular || !fdh->elf.def_regular
|| fdh == NULL || fdh->elf.forced_local);
|| !fdh->elf.def_regular
|| fdh->elf.forced_local));
_bfd_elf_link_hash_hide_symbol (info, &fh->elf, force_local); _bfd_elf_link_hash_hide_symbol (info, &fh->elf, force_local);
return TRUE; return TRUE;