diff options
Diffstat (limited to 'bfd/elf32-mep.c')
-rw-r--r-- | bfd/elf32-mep.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c index e03fe50..5224d9a 100644 --- a/bfd/elf32-mep.c +++ b/bfd/elf32-mep.c @@ -375,10 +375,10 @@ mep_final_link_relocate /* Set the howto pointer for a MEP ELF reloc. */ -static void -mep_info_to_howto_rela (bfd *abfd, - arelent *cache_ptr, - Elf_Internal_Rela *dst) +static bfd_boolean +mep_info_to_howto_rela (bfd * abfd, + arelent * cache_ptr, + Elf_Internal_Rela * dst) { unsigned int r_type; @@ -388,9 +388,11 @@ mep_info_to_howto_rela (bfd *abfd, /* 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 = & mep_elf_howto_table [r_type]; + return TRUE; } /* Relocate a MEP ELF section. |