This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] RISC-V: Eliminate spurious error w/ reloc truncated message
- From: Jim Wilson <wilson at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 7 Feb 2018 00:54:23 -0000
- Subject: [binutils-gdb] RISC-V: Eliminate spurious error w/ reloc truncated message
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ed01220cc81fac2f65abde945d9b77b11d004361
commit ed01220cc81fac2f65abde945d9b77b11d004361
Author: Jim Wilson <jimw@sifive.com>
Date: Tue Feb 6 16:53:00 2018 -0800
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:
---
bfd/ChangeLog | 5 +++++
bfd/elfnn-riscv.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 56c3feb..4a4167c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-06 Jim Wilson <jimw@sifive.com>
+
+ * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
+ callback to report an error.
+
2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
PR ld/22263
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index 3524fed..a37f4aa 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;
}