Fix handling of hidden symbols on hppa. Patch from upstream (Alan Modra).
authorkettenis <kettenis@openbsd.org>
Mon, 19 Jul 2010 17:32:18 +0000 (17:32 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 19 Jul 2010 17:32:18 +0000 (17:32 +0000)
ok miod@, tested by landry@

gnu/usr.bin/binutils/bfd/elf32-hppa.c

index 54dbb9a..e8905ea 100644 (file)
@@ -1615,7 +1615,7 @@ elf32_hppa_hide_symbol (struct bfd_link_info *info,
   if (! ((struct elf32_hppa_link_hash_entry *) h)->plabel)
     {
       h->elf_link_hash_flags &= ~ELF_LINK_HASH_NEEDS_PLT;
-      h->plt.offset = (bfd_vma) -1;
+      h->plt = elf_hash_table (info)->init_refcount;
     }
 }