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.
This commit is contained in:
Jim Wilson 2018-02-06 16:53:00 -08:00
parent f3342ae030
commit ed01220cc8
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;
}