* elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
[binutils-gdb.git] / bfd / elf32-i386.c
index cb2a3dc75dc00a57bfee36708f4bcae4dfc6bf4f..9ee5966b2c42d2ffc6c9f537b07f6212eab8b23c 100644 (file)
@@ -902,6 +902,9 @@ elf_i386_relocate_section (output_bfd, info, input_bfd, input_section,
       else
        {
          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;
          if (h->root.type == bfd_link_hash_defined
              || h->root.type == bfd_link_hash_defweak)
            {