From: Claudiu Zissulescu Date: Mon, 13 Jun 2016 15:44:48 +0000 (+0200) Subject: [ARC] Fix condition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=815dc1bcdc1de926bfbb63fb15e0725c9bbc7671;p=binutils-gdb.git [ARC] Fix condition. bfd/ 2016-06-13 Cupertino Miranda * elf32-arc.c (elf_arc_relocate_section): Fixed condition. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6dccb383005..5654b8f2e54 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-06-13 Cupertino Miranda + + * elf32-arc.c (elf_arc_relocate_section): Fixed condition. + 2016-06-13 Cupertino Miranda * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed. diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 7493a1ee70c..82bfe026153 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -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."));