X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Felf32-arc.c;h=f424f13e34ff38fadbcdc01381d01836d859cdb3;hb=f4e6805f98d2b3eae305f66ba26ab25aae1485f2;hp=b1a1697f4c19359a249f5d88dbb99a7650fe42ab;hpb=cd6402916febae6d8a4e62c572ea6fd487eebb61;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index b1a1697f4c..f424f13e34 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1412,6 +1412,7 @@ elf_arc_relocate_section (bfd * output_bfd, asection * sec; struct elf_link_hash_entry * h2; const char * msg; + bfd_boolean unresolved_reloc = FALSE; struct arc_relocation_data reloc_data = { @@ -1499,6 +1500,14 @@ elf_arc_relocate_section (bfd * output_bfd, } else { + bfd_boolean warned, ignored; + bfd_vma relocation ATTRIBUTE_UNUSED; + + RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, + r_symndx, symtab_hdr, sym_hashes, + h, sec, relocation, + unresolved_reloc, warned, ignored); + /* TODO: This code is repeated from below. We should clean it and remove duplications. Sec is used check for discarded sections.