aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-tilepro.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-07-24 11:27:33 +0100
committerNick Clifton <nickc@redhat.com>2017-07-24 11:27:33 +0100
commit47aeb64c10ec9c9f06d2d2f4451f417d63b023e1 (patch)
treeb29b88b2fe25f814ad01225d316dd28688ca4ca1 /bfd/elf32-tilepro.c
parent645b28002711eba22e8a4df3733a01206ab7d36d (diff)
downloadgdb-47aeb64c10ec9c9f06d2d2f4451f417d63b023e1.zip
gdb-47aeb64c10ec9c9f06d2d2f4451f417d63b023e1.tar.gz
gdb-47aeb64c10ec9c9f06d2d2f4451f417d63b023e1.tar.bz2
Improve "unrecognized relocation" error messages to add the suggestion that the linker might be out of date.
PR 21803 * reloc.c (_bfd_unrecognized_reloc): New function. Reports an unrecognized reloc and sets the bfd_error value. * libbfd.h: Regenerate. * elf32-arm.c (elf32_arm_final_link_relocate): Use the new function. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise. * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf32-tilepro.c')
-rw-r--r--bfd/elf32-tilepro.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c
index 976ce30..13b9bb1 100644
--- a/bfd/elf32-tilepro.c
+++ b/bfd/elf32-tilepro.c
@@ -2861,15 +2861,7 @@ tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
continue;
if ((unsigned int)r_type >= NELEMS(tilepro_elf_howto_table))
- {
- /* Not clear if we need to check here, but just be paranoid. */
- _bfd_error_handler
- /* xgettext:c-format */
- (_("%B: unrecognized relocation (0x%x) in section `%A'"),
- input_bfd, r_type, input_section);
- bfd_set_error (bfd_error_bad_value);
- return FALSE;
- }
+ return _bfd_unrecognized_reloc (input_bfd, input_section, r_type);
howto = tilepro_elf_howto_table + r_type;