From ed01220cc81fac2f65abde945d9b77b11d004361 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 6 Feb 2018 16:53:00 -0800 Subject: [PATCH] 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. --- bfd/ChangeLog | 5 +++++ bfd/elfnn-riscv.c | 1 + 2 files changed, 6 insertions(+) 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; } -- 2.30.2