* elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
[deliverable/binutils-gdb.git] / bfd / elf32-ppc.c
index 91953902c91a1056eaf87482de1a49847a863dfb..86fb760092eb71272dc8adcdfb42f35d14eb8377 100644 (file)
@@ -4075,6 +4075,9 @@ ppc_elf_gc_sweep_hook (bfd *abfd,
          struct ppc_elf_link_hash_entry *eh;
 
          h = sym_hashes[r_symndx - symtab_hdr->sh_info];
+         while (h->root.type == bfd_link_hash_indirect
+                || h->root.type == bfd_link_hash_warning)
+           h = (struct elf_link_hash_entry *) h->root.u.i.link;
          eh = (struct ppc_elf_link_hash_entry *) h;
 
          for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
This page took 0.024798 seconds and 4 git commands to generate.