diff options
Diffstat (limited to 'bfd/elf32-fr30.c')
-rw-r--r-- | bfd/elf32-fr30.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elf32-fr30.c b/bfd/elf32-fr30.c index 6d8a040..7b0fc88 100644 --- a/bfd/elf32-fr30.c +++ b/bfd/elf32-fr30.c @@ -367,7 +367,7 @@ fr30_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, const char *r_name) /* Set the howto pointer for an FR30 ELF reloc. */ -static void +static bfd_boolean fr30_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr, Elf_Internal_Rela *dst) @@ -380,9 +380,11 @@ fr30_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED, /* xgettext:c-format */ _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r_type); - r_type = 0; + bfd_set_error (bfd_error_bad_value); + return FALSE; } cache_ptr->howto = & fr30_elf_howto_table [r_type]; + return TRUE; } /* Perform a single relocation. By default we use the standard BFD |