diff options
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r-- | bfd/elf32-arc.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 1e012e29a0..08949c7f5c 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1462,25 +1462,19 @@ elf_arc_relocate_section (bfd * output_bfd, { /* Fail if it is linking for PIE and the symbol is undefined. */ - if (bfd_link_executable (info) - && !(*info->callbacks->undefined_symbol) - (info, h->root.root.string, input_bfd, input_section, - rel->r_offset, TRUE)) - { - return FALSE; - } + if (bfd_link_executable (info)) + (*info->callbacks->undefined_symbol) + (info, h->root.root.string, input_bfd, input_section, + rel->r_offset, TRUE); reloc_data.sym_value = h->plt.offset; reloc_data.sym_section = htab->splt; reloc_data.should_relocate = TRUE; } - else if (!bfd_link_pic (info) - && !(*info->callbacks->undefined_symbol) - (info, h->root.root.string, input_bfd, input_section, - rel->r_offset, TRUE)) - { - return FALSE; - } + else if (!bfd_link_pic (info)) + (*info->callbacks->undefined_symbol) + (info, h->root.root.string, input_bfd, input_section, + rel->r_offset, TRUE); } if (h->got.glist != NULL) |