[ARC] Fix condition.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 13 Jun 2016 15:44:48 +0000 (17:44 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Mon, 13 Jun 2016 15:45:38 +0000 (17:45 +0200)
bfd/
2016-06-13  Cupertino Miranda  <cmiranda@synospsy.com>

* elf32-arc.c (elf_arc_relocate_section): Fixed condition.

bfd/ChangeLog
bfd/elf32-arc.c

index 6dccb383005f3795c53f5c2b04b66b30de560e1e..5654b8f2e54f6babcb2c89808801159f678bb64f 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-13  Cupertino Miranda  <cmiranda@synospsy.com>
+
+       * elf32-arc.c (elf_arc_relocate_section): Fixed condition.
+
 2016-06-13  Cupertino Miranda  <cmiranda@synospsy.com>
 
        * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed.
index 7493a1ee70c339e3dd972f89005adc68077c236e..82bfe02615300dbd8e4085b28435c31bd1a81fd3 100644 (file)
@@ -1673,7 +1673,8 @@ elf_arc_relocate_section (bfd *              output_bfd,
 
       /* Make sure we have with a dynamic linker.  In case of GOT and PLT
          the sym_section should point to .got or .plt respectively.  */
-      if (is_reloc_for_GOT (howto) || is_reloc_for_PLT (howto))
+      if ((is_reloc_for_GOT (howto) || is_reloc_for_PLT (howto))
+         && reloc_data.sym_section == NULL)
        {
          (*_bfd_error_handler)
            (_("GOT and PLT relocations cannot be fixed with a non dynamic linker."));
This page took 0.028323 seconds and 4 git commands to generate.