RISC-V: Eliminate spurious error w/ reloc truncated message
authorJim Wilson <jimw@sifive.com>
Wed, 7 Feb 2018 00:53:00 +0000 (16:53 -0800)
committerJim Wilson <jimw@sifive.com>
Wed, 7 Feb 2018 00:53:41 +0000 (16:53 -0800)
bfd/
* elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
callback to report an error.

bfd/ChangeLog
bfd/elfnn-riscv.c

index 56c3feb..4a4167c 100644 (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
index 3524fed..a37f4aa 100644 (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;
     }