mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-29 21:13:21 +00:00
[ARC] Fix condition.
bfd/ 2016-06-13 Cupertino Miranda <cmiranda@synospsy.com> * elf32-arc.c (elf_arc_relocate_section): Fixed condition.
This commit is contained in:
parent
cad8e26d2a
commit
815dc1bcdc
@ -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.
|
||||
|
@ -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."));
|
||||
|
Loading…
x
Reference in New Issue
Block a user