RISC-V: Add comment for previous change.
authorJim Wilson <jimw@sifive.com>
Thu, 8 Feb 2018 21:15:10 +0000 (13:15 -0800)
committerJim Wilson <jimw@sifive.com>
Thu, 8 Feb 2018 21:15:10 +0000 (13:15 -0800)
bfd/
* elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
change.

bfd/ChangeLog
bfd/elfnn-riscv.c

index 7462f914c6ce5726a2965abf45812289c3a50c4f..0cd219ba64ca2a90d3e24f6cc335afe211d6c6a7 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-08  Jim Wilson  <jimw@sifive.com>
+
+       * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
+       change.
+
 2018-02-08  Nick Clifton  <nickc@redhat.com>
 
        PR 22788
index a37f4aac7614bafa2f28f2b91f190ab508528fd2..dd9c300b5ee531e7e5c07f4944c3dbdcfc49309f 100644 (file)
@@ -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;
     }