diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfnn-riscv.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bb99231..1fc39dc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2019-08-30 Jim Wilson <jimw@sifive.com> + + * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc + error, call bfd_set_error, set ret to FALSE, and goto out label. + 2019-08-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/24951 diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c index 4729bae..ef2471e 100644 --- a/bfd/elfnn-riscv.c +++ b/bfd/elfnn-riscv.c @@ -2297,7 +2297,10 @@ riscv_elf_relocate_section (bfd *output_bfd, (uint64_t) rel->r_offset, howto->name, h->root.root.string); - continue; + + bfd_set_error (bfd_error_bad_value); + ret = FALSE; + goto out; } if (r == bfd_reloc_ok) |