Improve "unrecognized relocation" error messages to add the suggestion that the linke...
[deliverable/binutils-gdb.git] / bfd / elfxx-tilegx.c
index 50543b9bac55c836a4864581585969953ace6fd5..390d0899caf798610e293af462fac3ab896e38d0 100644 (file)
@@ -3160,15 +3160,7 @@ tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
        continue;
 
       if ((unsigned int)r_type >= ARRAY_SIZE (tilegx_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 = tilegx_elf_howto_table + r_type;
 
This page took 0.023716 seconds and 4 git commands to generate.