diff options
Diffstat (limited to 'bfd/elf32-epiphany.c')
-rw-r--r-- | bfd/elf32-epiphany.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elf32-epiphany.c b/bfd/elf32-epiphany.c index 8c24541..efbd67b 100644 --- a/bfd/elf32-epiphany.c +++ b/bfd/elf32-epiphany.c @@ -362,7 +362,7 @@ epiphany_elf_relax_section (bfd *abfd, asection *sec, /* Set the howto pointer for a EPIPHANY ELF reloc. */ -static void +static bfd_boolean epiphany_info_to_howto_rela (bfd * abfd, arelent * cache_ptr, Elf_Internal_Rela * dst) @@ -375,9 +375,11 @@ epiphany_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 = & epiphany_elf_howto_table [r_type]; + return TRUE; } /* Perform a single relocation. |