aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arc.c
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2016-06-13 17:44:48 +0200
committerClaudiu Zissulescu <claziss@synopsys.com>2016-06-13 17:45:38 +0200
commit815dc1bcdc1de926bfbb63fb15e0725c9bbc7671 (patch)
tree14338a522536dc08615529a3e5585ee1f7b7ec36 /bfd/elf32-arc.c
parentcad8e26d2a2c7cee04954624fbaf91f03eec50ec (diff)
downloadgdb-815dc1bcdc1de926bfbb63fb15e0725c9bbc7671.zip
gdb-815dc1bcdc1de926bfbb63fb15e0725c9bbc7671.tar.gz
gdb-815dc1bcdc1de926bfbb63fb15e0725c9bbc7671.tar.bz2
[ARC] Fix condition.
bfd/ 2016-06-13 Cupertino Miranda <cmiranda@synospsy.com> * elf32-arc.c (elf_arc_relocate_section): Fixed condition.
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r--bfd/elf32-arc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index 7493a1e..82bfe02 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."));