2000-04-27 H.J. Lu <hjl@gnu.org>

* elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
	only for ELF_LINK_FORCED_LOCAL.
	* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
	* elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
	* elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.

	* elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
	if the symbol has hidden or internal visibility.
This commit is contained in:
H.J. Lu
2001-04-30 16:13:26 +00:00
parent db20fd7654
commit 5fba655aed
6 changed files with 22 additions and 4 deletions

View File

@@ -4002,7 +4002,8 @@ _bfd_mips_elf_hide_symbol (info, h)
h->root.elf_link_hash_flags &= ~ELF_LINK_HASH_NEEDS_PLT;
h->root.plt.offset = (bfd_vma) -1;
h->root.dynindx = -1;
if ((h->root.elf_link_hash_flags & ELF_LINK_FORCED_LOCAL) != 0)
h->root.dynindx = -1;
/* FIXME: Do we allocate too much GOT space here? */
g->local_gotno++;