Use standardized error message for unrecognized relocs.
bfd * 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.
This commit is contained in:
parent
f3185997ac
commit
e8f5af786c
11 changed files with 23 additions and 11 deletions
|
@ -1,5 +1,17 @@
|
||||||
2018-02-27 Nick Clifton <nickc@redhat.com>
|
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
|
PR 22875
|
||||||
* elf-bfd.h (struct elf_backend_data): Change the return type of
|
* 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
|
the elf_info_to_howto and elf_info_to_howto_rel function pointers
|
||||||
|
|
|
@ -197,7 +197,7 @@ MY (swap_ext_reloc_out) (bfd *abfd,
|
||||||
if (r_type > 2)
|
if (r_type > 2)
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
_bfd_error_handler (_("%pB: invalid relocation type exported: %d"),
|
_bfd_error_handler (_("%pB: unsupported relocation type exported: %#x"),
|
||||||
abfd, r_type);
|
abfd, r_type);
|
||||||
|
|
||||||
bfd_set_error (bfd_error_wrong_format);
|
bfd_set_error (bfd_error_wrong_format);
|
||||||
|
@ -241,7 +241,7 @@ MY (swap_ext_reloc_in) (bfd *abfd,
|
||||||
if (r_type > 2)
|
if (r_type > 2)
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
_bfd_error_handler (_("%pB: invalid relocation type imported: %d"),
|
_bfd_error_handler (_("%pB: unsupported relocation type imported: %#x"),
|
||||||
abfd, r_type);
|
abfd, r_type);
|
||||||
|
|
||||||
bfd_set_error (bfd_error_wrong_format);
|
bfd_set_error (bfd_error_wrong_format);
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ elf_hppa_info_to_howto_rel (bfd *abfd,
|
||||||
if (r_type >= (unsigned int) R_PARISC_UNIMPLEMENTED)
|
if (r_type >= (unsigned int) R_PARISC_UNIMPLEMENTED)
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* 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);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -348,7 +348,7 @@ elf_i386_reloc_type_lookup (bfd *abfd,
|
||||||
default:
|
default:
|
||||||
TRACE ("Unknown");
|
TRACE ("Unknown");
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
_bfd_error_handler (_("%pB: invalid Alpha reloc number: %d"),
|
_bfd_error_handler (_("%pB: unsupported relocation type: %#x"),
|
||||||
abfd, (int) code);
|
abfd, (int) code);
|
||||||
bfd_set_error (bfd_error_bad_value);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -451,7 +451,7 @@ elf_xtensa_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* 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);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
TRACE ("Unknown");
|
TRACE ("Unknown");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -2245,7 +2245,7 @@ ppc64_elf_reloc_type_lookup (bfd *abfd,
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* 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);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
@ -325,7 +325,7 @@ elf_s390_reloc_type_lookup (bfd *abfd,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* 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);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1411,7 +1411,7 @@ sh_elf64_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
|
||||||
if (r > (unsigned int) R_SH_64_PCREL)
|
if (r > (unsigned int) R_SH_64_PCREL)
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* 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);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -322,7 +322,7 @@ ia64_elf_reloc_type_lookup (bfd *abfd,
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
_bfd_error_handler (_("%pB: invalid BFD relocation type %d"),
|
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
|
||||||
abfd, (int) bfd_code);
|
abfd, (int) bfd_code);
|
||||||
bfd_set_error (bfd_error_bad_value);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -586,7 +586,7 @@ _bfd_sparc_elf_reloc_type_lookup (bfd *abfd,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* xgettext:c-format */
|
/* 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);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -909,7 +909,7 @@ tilegx_reloc_type_lookup (bfd * abfd,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
_bfd_error_handler (_("%pB: invalid BFD relocation type %d"),
|
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
|
||||||
abfd, (int) code);
|
abfd, (int) code);
|
||||||
bfd_set_error (bfd_error_bad_value);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue