From: Jim Wilson Date: Wed, 7 Feb 2018 00:53:00 +0000 (-0800) Subject: RISC-V: Eliminate spurious error w/ reloc truncated message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed01220cc81fac2f65abde945d9b77b11d004361;p=binutils-gdb.git RISC-V: Eliminate spurious error w/ reloc truncated message bfd/ * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used callback to report an error. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 56c3feb65b7..4a4167cce5b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2018-02-06 Jim Wilson + + * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used + callback to report an error. + 2018-02-06 Eric Botcazou PR ld/22263 diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c index 3524fede0f7..a37f4aac761 100644 --- a/bfd/elfnn-riscv.c +++ b/bfd/elfnn-riscv.c @@ -2253,6 +2253,7 @@ riscv_elf_relocate_section (bfd *output_bfd, if (msg) info->callbacks->warning (info, msg, name, input_bfd, input_section, rel->r_offset); + ret = TRUE; goto out; }