This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] [ARC] Fix condition.
- From: Claudiu Zissulescu <claziss at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 13 Jun 2016 15:46:39 -0000
- Subject: [binutils-gdb] [ARC] Fix condition.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=815dc1bcdc1de926bfbb63fb15e0725c9bbc7671
commit 815dc1bcdc1de926bfbb63fb15e0725c9bbc7671
Author: Claudiu Zissulescu <claziss@synopsys.com>
Date: Mon Jun 13 17:44:48 2016 +0200
[ARC] Fix condition.
bfd/
2016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
* elf32-arc.c (elf_arc_relocate_section): Fixed condition.
Diff:
---
bfd/ChangeLog | 4 ++++
bfd/elf32-arc.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6dccb38..5654b8f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
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.
2016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
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."));