aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-riscv.c
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2018-02-08 13:15:10 -0800
committerJim Wilson <jimw@sifive.com>2018-02-08 13:15:10 -0800
commit3f48fe4a95ec0e67b81d5d606762c91ad9a6b799 (patch)
tree2b05b22e330c3a21e68afebc81a00ab71a996eb0 /bfd/elfnn-riscv.c
parent9a897d43f034544cd09292d0fb6fded7eb64ae8d (diff)
downloadgdb-3f48fe4a95ec0e67b81d5d606762c91ad9a6b799.zip
gdb-3f48fe4a95ec0e67b81d5d606762c91ad9a6b799.tar.gz
gdb-3f48fe4a95ec0e67b81d5d606762c91ad9a6b799.tar.bz2
RISC-V: Add comment for previous change.
bfd/ * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous change.
Diffstat (limited to 'bfd/elfnn-riscv.c')
-rw-r--r--bfd/elfnn-riscv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index a37f4aa..dd9c300 100644
--- a/bfd/elfnn-riscv.c
+++ b/bfd/elfnn-riscv.c
@@ -2253,6 +2253,8 @@ riscv_elf_relocate_section (bfd *output_bfd,
if (msg)
info->callbacks->warning
(info, msg, name, input_bfd, input_section, rel->r_offset);
+ /* We already reported the error via a callback, so don't try to report
+ it again by returning false. That leads to spurious errors. */
ret = TRUE;
goto out;
}