2018-02-27  Nick Clifton  <nickc@redhat.com>
 
+       * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
+       message.
+       * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
+       * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
+       * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
+       * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
+       * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
+       * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
+       * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
+       * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
+
        PR 22875
        * elf-bfd.h (struct elf_backend_data): Change the return type of
        the elf_info_to_howto and elf_info_to_howto_rel function pointers
 
   if (r_type > 2)
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid relocation type exported: %d"),
+      _bfd_error_handler (_("%pB: unsupported relocation type exported: %#x"),
                          abfd, r_type);
 
       bfd_set_error (bfd_error_wrong_format);
   if (r_type > 2)
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid relocation type imported: %d"),
+      _bfd_error_handler (_("%pB: unsupported relocation type imported: %#x"),
                          abfd, r_type);
 
       bfd_set_error (bfd_error_wrong_format);
 
   if (r_type >= (unsigned int) R_PARISC_UNIMPLEMENTED)
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid relocation type %d"), abfd, r_type);
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r_type);
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
     }
 
     default:
       TRACE ("Unknown");
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid Alpha reloc number: %d"),
+      _bfd_error_handler (_("%pB: unsupported relocation type: %#x"),
                          abfd, (int) code);
       bfd_set_error (bfd_error_bad_value);
       return NULL;
 
     }
 
   /* xgettext:c-format */
-  _bfd_error_handler (_("%pB: invalid relocation type %d"), abfd, (int) code);
+  _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, (int) code);
   bfd_set_error (bfd_error_bad_value);
   TRACE ("Unknown");
   return NULL;
 
     {
     default:
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid relocation type %d"), abfd, (int) code);
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, (int) code);
       bfd_set_error (bfd_error_bad_value);
       return NULL;
 
 
     }
 
   /* xgettext:c-format */
-  _bfd_error_handler (_("%pB: invalid relocation type %d"), abfd, (int) code);
+  _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, (int) code);
   bfd_set_error (bfd_error_bad_value);
   return NULL;
 }
 
   if (r > (unsigned int) R_SH_64_PCREL)
     {
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid relocation type %d"), abfd, r);
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r);
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
     }
 
 
     default:
       /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: invalid BFD relocation type %d"),
+      _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
                          abfd, (int) bfd_code);
       bfd_set_error (bfd_error_bad_value);
       return NULL;
 
       break;
     }
   /* xgettext:c-format */
-  _bfd_error_handler (_("%pB: invalid BFD relocation type %d"), abfd, (int) code);
+  _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, (int) code);
   bfd_set_error (bfd_error_bad_value);
   return NULL;
 }
 
     }
 
   /* xgettext:c-format */
-  _bfd_error_handler (_("%pB: invalid BFD relocation type %d"),
+  _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
                      abfd, (int) code);
   bfd_set_error (bfd_error_bad_value);
   return NULL;