X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=bfd%2Felf32-microblaze.c;h=e260c5557758351bfb8e8663a792388153a9e6a8;hb=cf35638d431e230d51d54550e8a249e730264ea5;hp=a64926a51efa5bd94dc93c4b4c4dc6b2eca4a325;hpb=2c2fa401c554831bacec9c920678ddda8ce69519;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c index a64926a51e..e260c55577 100644 --- a/bfd/elf32-microblaze.c +++ b/bfd/elf32-microblaze.c @@ -1067,10 +1067,10 @@ microblaze_elf_relocate_section (bfd *output_bfd, case (int) R_MICROBLAZE_64: case (int) R_MICROBLAZE_32: { - /* r_symndx will be zero only for relocs against symbols + /* r_symndx will be STN_UNDEF (zero) only for relocs against symbols from removed linkonce sections, or sections discarded by a linker script. */ - if (r_symndx == 0 || (input_section->flags & SEC_ALLOC) == 0) + if (r_symndx == STN_UNDEF || (input_section->flags & SEC_ALLOC) == 0) { relocation += addend; if (r_type == R_MICROBLAZE_32)