Add c-format tags to translatable strings with more than one argument-using formatting token.

* aout-adobe.c: Add missing c-format tags for translatable strings.
	* aout-cris.c: Likewise.
	* aoutx.h: Likewise.
	* bfd.c: Likewise.
	* binary.c: Likewise.
	* cache.c: Likewise.
	* coff-alpha.c: Likewise.
	* coff-arm.c: Likewise.
	* coff-i860.c: Likewise.
	* coff-mcore.c: Likewise.
	* coff-ppc.c: Likewise.
	* coff-rs6000.c: Likewise.
	* coff-sh.c: Likewise.
	* coff-tic4x.c: Likewise.
	* coff-tic54x.c: Likewise.
	* coff-tic80.c: Likewise.
	* coff64-rs6000.c: Likewise.
	* coffcode.h: Likewise.
	* coffgen.c: Likewise.
	* cofflink.c: Likewise.
	* coffswap.h: Likewise.
	* cpu-arm.c: Likewise.
	* dwarf2.c: Likewise.
	* ecoff.c: Likewise.
	* elf-attrs.c: Likewise.
	* elf-eh-frame.c: Likewise.
	* elf-ifunc.c: Likewise.
	* elf-m10300.c: Likewise.
	* elf-s390-common.c: Likewise.
	* elf.c: Likewise.
	* elf32-arc.c: Likewise.
	* elf32-arm.c: Likewise.
	* elf32-avr.c: Likewise.
	* elf32-bfin.c: Likewise.
	* elf32-cr16.c: Likewise.
	* elf32-cr16c.c: Likewise.
	* elf32-cris.c: Likewise.
	* elf32-crx.c: Likewise.
	* elf32-d10v.c: Likewise.
	* elf32-d30v.c: Likewise.
	* elf32-epiphany.c: Likewise.
	* elf32-fr30.c: Likewise.
	* elf32-frv.c: Likewise.
	* elf32-gen.c: Likewise.
	* elf32-hppa.c: Likewise.
	* elf32-i370.c: Likewise.
	* elf32-i386.c: Likewise.
	* elf32-i960.c: Likewise.
	* elf32-ip2k.c: Likewise.
	* elf32-iq2000.c: Likewise.
	* elf32-lm32.c: Likewise.
	* elf32-m32c.c: Likewise.
	* elf32-m32r.c: Likewise.
	* elf32-m68hc11.c: Likewise.
	* elf32-m68hc12.c: Likewise.
	* elf32-m68hc1x.c: Likewise.
	* elf32-m68k.c: Likewise.
	* elf32-mcore.c: Likewise.
	* elf32-mep.c: Likewise.
	* elf32-metag.c: Likewise.
	* elf32-microblaze.c: Likewise.
	* elf32-moxie.c: Likewise.
	* elf32-msp430.c: Likewise.
	* elf32-mt.c: Likewise.
	* elf32-nds32.c: Likewise.
	* elf32-nios2.c: Likewise.
	* elf32-or1k.c: Likewise.
	* elf32-pj.c: Likewise.
	* elf32-ppc.c: Likewise.
	* elf32-rl78.c: Likewise.
	* elf32-rx.c: Likewise.
	* elf32-s390.c: Likewise.
	* elf32-score.c: Likewise.
	* elf32-score7.c: Likewise.
	* elf32-sh-symbian.c: Likewise.
	* elf32-sh.c: Likewise.
	* elf32-sh64.c: Likewise.
	* elf32-spu.c: Likewise.
	* elf32-tic6x.c: Likewise.
	* elf32-tilepro.c: Likewise.
	* elf32-v850.c: Likewise.
	* elf32-vax.c: Likewise.
	* elf32-visium.c: Likewise.
	* elf32-xgate.c: Likewise.
	* elf32-xtensa.c: Likewise.
	* elf64-alpha.c: Likewise.
	* elf64-gen.c: Likewise.
	* elf64-hppa.c: Likewise.
	* elf64-ia64-vms.c: Likewise.
	* elf64-mmix.c: Likewise.
	* elf64-ppc.c: Likewise.
	* elf64-s390.c: Likewise.
	* elf64-sh64.c: Likewise.
	* elf64-sparc.c: Likewise.
	* elf64-x86-64.c: Likewise.
	* elfcode.h: Likewise.
	* elfcore.h: Likewise.
	* elflink.c: Likewise.
	* elfnn-aarch64.c: Likewise.
	* elfnn-ia64.c: Likewise.
	* elfxx-mips.c: Likewise.
	* elfxx-sparc.c: Likewise.
	* elfxx-tilegx.c: Likewise.
	* ieee.c: Likewise.
	* ihex.c: Likewise.
	* libbfd.c: Likewise.
	* linker.c: Likewise.
	* m68klinux.c: Likewise.
	* mach-o.c: Likewise.
	* merge.c: Likewise.
	* mmo.c: Likewise.
	* oasys.c: Likewise.
	* pdp11.c: Likewise.
	* pe-mips.c: Likewise.
	* peXXigen.c: Likewise.
	* pei-x86_64.c: Likewise.
	* peicode.h: Likewise.
	* ppcboot.c: Likewise.
	* reloc.c: Likewise.
	* sparclinux.c: Likewise.
	* srec.c: Likewise.
	* stabs.c: Likewise.
	* vms-alpha.c: Likewise.
	* vms-lib.c: Likewise.
	* xcofflink.c: Likewise.
This commit is contained in:
Nick Clifton 2016-10-19 14:04:34 +01:00
parent 15f205b115
commit 695344c018
126 changed files with 1164 additions and 198 deletions

View file

@ -1,3 +1,131 @@
2016-10-19 Nick Clifton <nickc@redhat.com>
* aout-adobe.c: Add missing c-format tags for translatable strings.
* aout-cris.c: Likewise.
* aoutx.h: Likewise.
* bfd.c: Likewise.
* binary.c: Likewise.
* cache.c: Likewise.
* coff-alpha.c: Likewise.
* coff-arm.c: Likewise.
* coff-i860.c: Likewise.
* coff-mcore.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-tic4x.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coffswap.h: Likewise.
* cpu-arm.c: Likewise.
* dwarf2.c: Likewise.
* ecoff.c: Likewise.
* elf-attrs.c: Likewise.
* elf-eh-frame.c: Likewise.
* elf-ifunc.c: Likewise.
* elf-m10300.c: Likewise.
* elf-s390-common.c: Likewise.
* elf.c: Likewise.
* elf32-arc.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-avr.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-cr16.c: Likewise.
* elf32-cr16c.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-crx.c: Likewise.
* elf32-d10v.c: Likewise.
* elf32-d30v.c: Likewise.
* elf32-epiphany.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-gen.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i960.c: Likewise.
* elf32-ip2k.c: Likewise.
* elf32-iq2000.c: Likewise.
* elf32-lm32.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-mep.c: Likewise.
* elf32-metag.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-moxie.c: Likewise.
* elf32-msp430.c: Likewise.
* elf32-mt.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-nios2.c: Likewise.
* elf32-or1k.c: Likewise.
* elf32-pj.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-sh-symbian.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-spu.c: Likewise.
* elf32-tic6x.c: Likewise.
* elf32-tilepro.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-visium.c: Likewise.
* elf32-xgate.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-gen.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* elfxx-tilegx.c: Likewise.
* ieee.c: Likewise.
* ihex.c: Likewise.
* libbfd.c: Likewise.
* linker.c: Likewise.
* m68klinux.c: Likewise.
* mach-o.c: Likewise.
* merge.c: Likewise.
* mmo.c: Likewise.
* oasys.c: Likewise.
* pdp11.c: Likewise.
* pe-mips.c: Likewise.
* peXXigen.c: Likewise.
* pei-x86_64.c: Likewise.
* peicode.h: Likewise.
* ppcboot.c: Likewise.
* reloc.c: Likewise.
* sparclinux.c: Likewise.
* srec.c: Likewise.
* stabs.c: Likewise.
* vms-alpha.c: Likewise.
* vms-lib.c: Likewise.
* xcofflink.c: Likewise.
2016-10-18 Nick Clifton <nickc@redhat.com>
* po/da.po: Updated Danish translation.

View file

@ -122,6 +122,7 @@ aout_adobe_callback (bfd *abfd)
default:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Unknown section type in a.out.adobe file: %x\n"),
abfd, ext->e_type[0]);
goto no_more_sections;

View file

@ -196,6 +196,7 @@ MY (swap_ext_reloc_out) (bfd *abfd,
We may change this later, but assert this for the moment. */
if (r_type > 2)
{
/* xgettext:c-format */
_bfd_error_handler (_("%s: Invalid relocation type exported: %d"),
bfd_get_filename (abfd), r_type);
@ -239,6 +240,7 @@ MY (swap_ext_reloc_in) (bfd *abfd,
if (r_type > 2)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: Invalid relocation type imported: %d"),
abfd, r_type);
@ -250,6 +252,7 @@ MY (swap_ext_reloc_in) (bfd *abfd,
if (r_extern && r_index > symcount)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Bad relocation record imported: %d"), abfd, r_index);
bfd_set_error (bfd_error_wrong_format);

View file

@ -1278,6 +1278,7 @@ NAME (aout, set_section_contents) (bfd *abfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: can not represent section `%s' in a.out object file format"),
bfd_get_filename (abfd), bfd_get_section_name (abfd, section));
bfd_set_error (bfd_error_nonrepresentable_section);
@ -1578,6 +1579,7 @@ translate_to_native_sym_flags (bfd *abfd,
/* This case occurs, e.g., for the *DEBUG* section of a COFF
file. */
_bfd_error_handler
/* xgettext:c-format */
(_("%s: can not represent section for symbol `%s' in a.out "
"object file format"),
bfd_get_filename (abfd),
@ -1613,6 +1615,7 @@ translate_to_native_sym_flags (bfd *abfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: can not represent section `%s' in a.out object file format"),
bfd_get_filename (abfd), bfd_get_section_name (abfd, sec));
bfd_set_error (bfd_error_nonrepresentable_section);
@ -5376,6 +5379,7 @@ NAME (aout, final_link) (bfd *abfd,
work out the number of relocs needed, and then multiply
by the reloc size. */
_bfd_error_handler
/* xgettext:c-format */
(_("%s: relocatable link from %s to %s not supported"),
bfd_get_filename (abfd),
sub->xvec->name, abfd->xvec->name);

View file

@ -1059,6 +1059,7 @@ bfd_set_file_flags (bfd *abfd, flagword flags)
void
bfd_assert (const char *file, int line)
{
/* xgettext:c-format */
(*_bfd_assert_handler) (_("BFD %s assertion fail %s:%d"),
BFD_VERSION_STRING, file, line);
}
@ -1071,10 +1072,12 @@ _bfd_abort (const char *file, int line, const char *fn)
{
if (fn != NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("BFD %s internal error, aborting at %s:%d in %s\n"),
BFD_VERSION_STRING, file, line, fn);
else
_bfd_error_handler
/* xgettext:c-format */
(_("BFD %s internal error, aborting at %s:%d\n"),
BFD_VERSION_STRING, file, line);
_bfd_error_handler (_("Please report this bug.\n"));

View file

@ -270,6 +270,7 @@ binary_set_section_contents (bfd *abfd,
if (s->filepos < 0)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: Writing section `%s' at huge (ie negative) "
"file offset 0x%lx."),
bfd_get_section_name (abfd, s),

View file

@ -268,6 +268,7 @@ bfd_cache_lookup_worker (bfd *abfd, enum cache_flag flag)
else
return (FILE *) abfd->iostream;
/* xgettext:c-format */
_bfd_error_handler (_("reopening %B: %s\n"),
orig_bfd, bfd_errmsg (bfd_get_error ()));
return NULL;

View file

@ -597,6 +597,7 @@ alpha_adjust_reloc_in (bfd *abfd,
{
if (intern->r_type > ALPHA_R_GPVALUE)
{
/* xgettext:c-format */
_bfd_error_handler
(_("%B: unknown/unsupported relocation type %d"),
abfd, intern->r_type);
@ -1513,6 +1514,7 @@ alpha_relocate_section (bfd *output_bfd,
default:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unknown relocation type %d"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);

View file

@ -1742,6 +1742,7 @@ coff_arm_relocate_section (bfd *output_bfd,
break;
case bfd_reloc_outofrange:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: bad reloc address 0x%lx in section `%A'"),
input_bfd, input_section, (unsigned long) rel->r_vaddr);
return FALSE;
@ -2066,6 +2067,7 @@ bfd_arm_process_before_allocation (bfd * abfd,
/* If the index is outside of the range of our table, something has gone wrong. */
if (symndx >= obj_conv_table_size (abfd))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: illegal symbol index in reloc: %d"),
abfd, symndx);
continue;
@ -2210,16 +2212,16 @@ coff_arm_merge_private_bfd_data (bfd * ibfd, struct bfd_link_info *info)
if (APCS_FLOAT_FLAG (obfd) != APCS_FLOAT_FLAG (ibfd))
{
const char *msg;
if (APCS_FLOAT_FLAG (ibfd))
/* xgettext: c-format */
msg = _("error: %B passes floats in float registers, whereas %B passes them in integer registers");
_bfd_error_handler (_("\
error: %B passes floats in float registers, whereas %B passes them in integer registers"),
ibfd, obfd);
else
/* xgettext: c-format */
msg = _("error: %B passes floats in integer registers, whereas %B passes them in float registers");
_bfd_error_handler (msg, ibfd, obfd);
_bfd_error_handler (_("\
error: %B passes floats in integer registers, whereas %B passes them in float registers"),
ibfd, obfd);
bfd_set_error (bfd_error_wrong_format);
return FALSE;
@ -2227,15 +2229,16 @@ coff_arm_merge_private_bfd_data (bfd * ibfd, struct bfd_link_info *info)
if (PIC_FLAG (obfd) != PIC_FLAG (ibfd))
{
const char * msg;
if (PIC_FLAG (ibfd))
/* xgettext: c-format */
msg = _("error: %B is compiled as position independent code, whereas target %B is absolute position");
_bfd_error_handler (_("\
error: %B is compiled as position independent code, whereas target %B is absolute position"),
ibfd, obfd);
else
/* xgettext: c-format */
msg = _("error: %B is compiled as absolute position code, whereas target %B is position independent");
_bfd_error_handler (msg, ibfd, obfd);
_bfd_error_handler (_("\
error: %B is compiled as absolute position code, whereas target %B is position independent"),
ibfd, obfd);
bfd_set_error (bfd_error_wrong_format);
return FALSE;
@ -2258,16 +2261,16 @@ coff_arm_merge_private_bfd_data (bfd * ibfd, struct bfd_link_info *info)
/* If the src and dest differ in their interworking issue a warning. */
if (INTERWORK_FLAG (obfd) != INTERWORK_FLAG (ibfd))
{
const char * msg;
if (INTERWORK_FLAG (ibfd))
/* xgettext: c-format */
msg = _("Warning: %B supports interworking, whereas %B does not");
_bfd_error_handler (_("\
Warning: %B supports interworking, whereas %B does not"),
ibfd, obfd);
else
/* xgettext: c-format */
msg = _("Warning: %B does not support interworking, whereas %B does");
_bfd_error_handler (msg, ibfd, obfd);
_bfd_error_handler (_("\
Warning: %B does not support interworking, whereas %B does"),
ibfd, obfd);
}
}
else
@ -2288,7 +2291,6 @@ coff_arm_print_private_bfd_data (bfd * abfd, void * ptr)
BFD_ASSERT (abfd != NULL && ptr != NULL);
/* xgettext:c-format */
fprintf (file, _("private flags = %x:"), coff_data (abfd)->flags);
if (APCS_SET (abfd))
@ -2357,11 +2359,9 @@ _bfd_coff_arm_set_private_flags (bfd * abfd, flagword flags)
if (INTERWORK_SET (abfd) && (INTERWORK_FLAG (abfd) != flag))
{
if (flag)
/* xgettext: c-format */
_bfd_error_handler (_("Warning: Not setting interworking flag of %B since it has already been specified as non-interworking"),
abfd);
else
/* xgettext: c-format */
_bfd_error_handler (_("Warning: Clearing the interworking flag of %B due to outside request"),
abfd);
flag = 0;
@ -2419,7 +2419,7 @@ coff_arm_copy_private_bfd_data (bfd * src, bfd * dest)
if (INTERWORK_FLAG (dest))
{
/* xgettext:c-format */
_bfd_error_handler (("\
_bfd_error_handler (_("\
Warning: Clearing the interworking flag of %B because non-interworking code in %B has been linked with it"),
dest, src);
}

View file

@ -604,6 +604,7 @@ i860_reloc_processing (arelent *cache_ptr, struct internal_reloc *dst,
if (dst->r_symndx < 0 || dst->r_symndx >= obj_conv_table_size (abfd))
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: warning: illegal symbol index %ld in relocs"),
abfd, dst->r_symndx);
cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;

View file

@ -241,6 +241,7 @@ mcore_coff_unsupported_reloc (bfd * abfd,
{
BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0);
/* xgettext: c-format */
_bfd_error_handler (_("%B: Relocation %s (%d) is not currently supported.\n"),
abfd,
reloc_entry->howto->name,
@ -366,6 +367,7 @@ coff_mcore_relocate_section (bfd * output_bfd,
&& output_bfd->xvec->byteorder != BFD_ENDIAN_UNKNOWN)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: compiled for a %s system and target is %s.\n"),
input_bfd,
bfd_big_endian (input_bfd) ? _("big endian") : _("little endian"),
@ -467,6 +469,7 @@ coff_mcore_relocate_section (bfd * output_bfd,
switch (r_type)
{
default:
/* xgettext: c-format */
_bfd_error_handler (_("%B: unsupported relocation type 0x%02x"),
input_bfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -474,6 +477,7 @@ coff_mcore_relocate_section (bfd * output_bfd,
case IMAGE_REL_MCORE_ABSOLUTE:
_bfd_error_handler
/* xgettext: c-format */
(_("Warning: unsupported reloc %s <file %B, section %A>\n"
"sym %ld (%s), r_vaddr %ld (%lx)"),
input_bfd, input_section, howto->name,

View file

@ -82,6 +82,7 @@ extern void dump_toc (void *);
if (strcmp (addr->eye_catcher, EYE) != 0) \
{ \
fprintf (stderr,\
/* xgettext: c-format */ \
_("File %s, line %d, Hash check failure, bad eye %8s\n"), \
__FILE__, __LINE__, addr->eye_catcher); \
abort (); \
@ -1038,6 +1039,7 @@ coff_ppc_relocate_section (bfd *output_bfd,
{
default:
_bfd_error_handler
/* xgettext: c-format */
(_("%B: unsupported relocation type 0x%02x"), input_bfd, r_type);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -1128,6 +1130,7 @@ coff_ppc_relocate_section (bfd *output_bfd,
if ((bfd_vma) our_toc_offset >= 65535)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: Relocation for %s of %lx exceeds "
"Toc size limit"),
input_bfd, name,
@ -1182,6 +1185,7 @@ coff_ppc_relocate_section (bfd *output_bfd,
&& (bfd_vma) our_toc_offset > toc_section->size)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: Relocation exceeds allocated TOC (%lx)"),
input_bfd, (unsigned long) toc_section->size);
bfd_set_error (bfd_error_bad_value);
@ -1236,6 +1240,7 @@ coff_ppc_relocate_section (bfd *output_bfd,
my_name = h->root.root.root.string;
_bfd_error_handler
/* xgettext: c-format */
(_("Warning: unsupported reloc %s <file %B, section %A>\n"
"sym %ld (%s), r_vaddr %ld (%lx)"),
input_bfd, input_section, howto->name,
@ -1254,6 +1259,7 @@ coff_ppc_relocate_section (bfd *output_bfd,
my_name = h->root.root.root.string;
_bfd_error_handler
/* xgettext: c-format */
(_("%B: Out of order IMGLUE reloc for %s"), input_bfd, my_name);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -1484,6 +1490,7 @@ dump_toc (void * vfile)
else
{
fprintf (file,
/* xgettext: c-format */
_("**** global_toc_size %ld(%lx), thunk_size %ld(%lx)\n"),
global_toc_size, (unsigned long) global_toc_size,
thunk_size, (unsigned long) thunk_size);
@ -1761,6 +1768,7 @@ ppc_coff_rtype2howto (arelent *relent, struct internal_reloc *internal)
break;
default:
_bfd_error_handler
/* xgettext: c-format */
(_("warning: unsupported reloc %s [%d] used -- it may not work"),
ppc_coff_howto_table[r_type].name, r_type);
howto = ppc_coff_howto_table + r_type;
@ -1832,6 +1840,7 @@ coff_ppc_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
break;
default:
_bfd_error_handler
/* xgettext: c-format */
(_("warning: unsupported reloc %s [%d] used -- it may not work"),
ppc_coff_howto_table[r_type].name, r_type);
howto = ppc_coff_howto_table + r_type;

View file

@ -2737,6 +2737,7 @@ xcoff_reloc_type_fail (bfd *input_bfd,
bfd_byte *contents ATTRIBUTE_UNUSED)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%s: unsupported relocation type 0x%02x"),
bfd_get_filename (input_bfd), (unsigned int) rel->r_type);
bfd_set_error (bfd_error_bad_value);
@ -2822,6 +2823,7 @@ xcoff_reloc_type_toc (bfd *input_bfd,
if (h->toc_section == NULL)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%s: TOC reloc at 0x%x to symbol `%s' with no TOC entry"),
bfd_get_filename (input_bfd), rel->r_vaddr,
h->root.root.string);
@ -3568,6 +3570,7 @@ xcoff_create_csect_from_smclas (bfd *abfd,
else
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: symbol `%s' has unrecognized smclas %d"),
abfd, symbol_name, aux->x_csect.x_smclas);
bfd_set_error (bfd_error_bad_value);

View file

@ -771,7 +771,8 @@ sh_relax_section (bfd *abfd,
laddr += ((irel->r_offset & 0xffffffff) ^ 0x80000000) - 0x80000000;
if (laddr >= sec->size)
{
_bfd_error_handler ("%B: 0x%lx: warning: bad R_SH_USES offset",
/* xgettext: c-format */
_bfd_error_handler (_("%B: 0x%lx: warning: bad R_SH_USES offset"),
abfd, (unsigned long) irel->r_vaddr);
continue;
}
@ -781,7 +782,8 @@ sh_relax_section (bfd *abfd,
if ((insn & 0xf000) != 0xd000)
{
_bfd_error_handler
("%B: 0x%lx: warning: R_SH_USES points to unrecognized insn 0x%x",
/* xgettext: c-format */
(_("%B: 0x%lx: warning: R_SH_USES points to unrecognized insn 0x%x"),
abfd, (unsigned long) irel->r_vaddr, insn);
continue;
}
@ -798,7 +800,8 @@ sh_relax_section (bfd *abfd,
if (paddr >= sec->size)
{
_bfd_error_handler
("%B: 0x%lx: warning: bad R_SH_USES load offset",
/* xgettext: c-format */
(_("%B: 0x%lx: warning: bad R_SH_USES load offset"),
abfd, (unsigned long) irel->r_vaddr);
continue;
}
@ -822,7 +825,8 @@ sh_relax_section (bfd *abfd,
if (irelfn >= irelend)
{
_bfd_error_handler
("%B: 0x%lx: warning: could not find expected reloc",
/* xgettext: c-format */
(_("%B: 0x%lx: warning: could not find expected reloc"),
abfd, (unsigned long) paddr);
continue;
}
@ -838,7 +842,8 @@ sh_relax_section (bfd *abfd,
if (sym.n_scnum != 0 && sym.n_scnum != sec->target_index)
{
_bfd_error_handler
("%B: 0x%lx: warning: symbol in unexpected section",
/* xgettext: c-format */
(_("%B: 0x%lx: warning: symbol in unexpected section"),
abfd, (unsigned long) paddr);
continue;
}
@ -963,7 +968,8 @@ sh_relax_section (bfd *abfd,
if (irelcount >= irelend)
{
_bfd_error_handler
("%B: 0x%lx: warning: could not find expected COUNT reloc",
/* xgettext: c-format */
(_("%B: 0x%lx: warning: could not find expected COUNT reloc"),
abfd, (unsigned long) paddr);
continue;
}
@ -972,7 +978,8 @@ sh_relax_section (bfd *abfd,
just deleted one. */
if (irelcount->r_offset == 0)
{
_bfd_error_handler ("%B: 0x%lx: warning: bad count",
/* xgettext: c-format */
_bfd_error_handler (_("%B: 0x%lx: warning: bad count"),
abfd, (unsigned long) paddr);
continue;
}
@ -1343,7 +1350,8 @@ sh_relax_delete_bytes (bfd *abfd,
if (overflow)
{
_bfd_error_handler
("%B: 0x%lx: fatal: reloc overflow while relaxing",
/* xgettext: c-format */
(_("%B: 0x%lx: fatal: reloc overflow while relaxing"),
abfd, (unsigned long) irel->r_vaddr);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -1438,7 +1446,7 @@ sh_relax_delete_bytes (bfd *abfd,
|| obj_raw_syments (abfd) != NULL)
{
_bfd_error_handler
("%B: fatal: generic symbols retrieved before relaxing", abfd);
(_("%B: fatal: generic symbols retrieved before relaxing"), abfd);
bfd_set_error (bfd_error_invalid_operation);
return FALSE;
}
@ -2630,7 +2638,8 @@ sh_swap_insns (bfd * abfd,
if (overflow)
{
_bfd_error_handler
("%B: 0x%lx: fatal: reloc overflow while relaxing",
/* xgettext: c-format */
(_("%B: 0x%lx: fatal: reloc overflow while relaxing"),
abfd, (unsigned long) irel->r_vaddr);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -2767,7 +2776,8 @@ sh_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
|| (unsigned long) symndx >= obj_raw_syment_count (input_bfd))
{
_bfd_error_handler
("%B: illegal symbol index %ld in relocs",
/* xgettext: c-format */
(_("%B: illegal symbol index %ld in relocs"),
input_bfd, symndx);
bfd_set_error (bfd_error_bad_value);
return FALSE;

View file

@ -223,6 +223,7 @@ tic4x_reloc_processing (arelent *relent,
if (reloc->r_symndx < 0 || reloc->r_symndx >= obj_conv_table_size (abfd))
{
_bfd_error_handler
/* xgettext: c-format */
(_("%s: warning: illegal symbol index %ld in relocs"),
bfd_get_filename (abfd), reloc->r_symndx);
relent->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;

View file

@ -361,6 +361,7 @@ tic54x_reloc_processing (arelent *relent,
if (reloc->r_symndx < 0 || reloc->r_symndx >= obj_conv_table_size (abfd))
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: warning: illegal symbol index %ld in relocs"),
abfd, reloc->r_symndx);
relent->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;

View file

@ -666,6 +666,7 @@ coff_tic80_relocate_section (bfd *output_bfd,
break;
case bfd_reloc_outofrange:
_bfd_error_handler
/* xgettext: c-format */
(_("%B: bad reloc address 0x%lx in section `%A'"),
input_bfd, input_section, (unsigned long) rel->r_vaddr);
return FALSE;

View file

@ -2106,6 +2106,7 @@ xcoff64_create_csect_from_smclas (bfd *abfd, union internal_auxent *aux,
else
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: symbol `%s' has unrecognized smclas %d"),
abfd, symbol_name, aux->x_csect.x_smclas);
bfd_set_error (bfd_error_bad_value);

View file

@ -1004,6 +1004,7 @@ handle_COMDAT (bfd * abfd,
function). See comment above for more. */
if (isym.n_sclass == C_STAT && strcmp (name, symname) != 0)
/* xgettext:c-format */
_bfd_error_handler (_("%B: warning: COMDAT symbol '%s' does not match section name '%s'"),
abfd, symname, name);
@ -1012,6 +1013,7 @@ handle_COMDAT (bfd * abfd,
/* PR 17512: file: e2cfe54f. */
if (esym + bfd_coff_symesz (abfd) >= esymend)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: warning: No symbol for section '%s' found"),
abfd, symname);
break;
@ -1236,6 +1238,7 @@ styp_to_sec_flags (bfd *abfd,
/* Generate a warning message rather using the 'unhandled'
variable as this will allow some .sys files generate by
other toolchains to be processed. See bugzilla issue 196. */
/* xgettext:c-format */
_bfd_error_handler (_("%B: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section %s"),
abfd, name);
break;
@ -1303,6 +1306,7 @@ styp_to_sec_flags (bfd *abfd,
if (unhandled != NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B (%s): Section flag %s (0x%x) ignored"),
abfd, name, unhandled, flag);
result = FALSE;
@ -1938,7 +1942,7 @@ coff_set_alignment_hook (bfd * abfd ATTRIBUTE_UNUSED,
}
else if (hdr->s_nreloc == 0xffff)
_bfd_error_handler
("%s: warning: claims to have 0xffff relocs, without overflow",
(_("%s: warning: claims to have 0xffff relocs, without overflow"),
bfd_get_filename (abfd));
}
#undef ALIGN_SET
@ -2779,6 +2783,7 @@ coff_write_relocs (bfd * abfd, int first_undef)
if (n.r_symndx > obj_conv_table_size (abfd))
{
bfd_set_error (bfd_error_bad_value);
/* xgettext:c-format */
_bfd_error_handler (_("%B: reloc against a non-existant symbol index: %ld"),
abfd, n.r_symndx);
return FALSE;
@ -3180,6 +3185,7 @@ coff_compute_section_file_positions (bfd * abfd)
{
bfd_set_error (bfd_error_file_too_big);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: page size is too large (0x%x)"), abfd, page_size);
return FALSE;
}
@ -3339,6 +3345,7 @@ coff_compute_section_file_positions (bfd * abfd)
{
bfd_set_error (bfd_error_file_too_big);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: too many sections (%d)"), abfd, target_index);
return FALSE;
}
@ -3757,6 +3764,7 @@ coff_write_object_contents (bfd * abfd)
{
bfd_set_error (bfd_error_file_too_big);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: section %s: string table overflow at offset %ld"),
abfd, current->name, string_size);
return FALSE;
@ -4607,6 +4615,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
if (symndx >= obj_raw_syment_count (abfd))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: illegal symbol index 0x%lx in line number entry %d"),
abfd, (long) symndx, counter);
cache_ptr->line_number = -1;
@ -4620,6 +4629,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
if (! ent->is_sym)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: illegal symbol index 0x%lx in line number entry %d"),
abfd, (long) symndx, counter);
cache_ptr->line_number = -1;
@ -4633,6 +4643,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
|| sym >= obj_symbols (abfd) + bfd_get_symcount (abfd))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: illegal symbol in line number entry %d"),
abfd, counter);
cache_ptr->line_number = -1;
@ -4645,6 +4656,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
cache_ptr->u.sym = (asymbol *) sym;
if (sym->lineno != NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: duplicate line number information for `%s'"),
abfd, bfd_asymbol_name (&sym->symbol));
@ -5059,6 +5071,7 @@ coff_slurp_symbol_table (bfd * abfd)
case C_HIDDEN: /* Ext symbol in dmert public lib. */
default:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Unrecognized storage class %d for %s symbol `%s'"),
abfd, src->u.syment.n_sclass,
dst->symbol.section->name, dst->symbol.name);
@ -5187,6 +5200,7 @@ coff_classify_symbol (bfd *abfd,
char buf[SYMNMLEN + 1];
_bfd_error_handler
/* xgettext:c-format */
(_("warning: %B: local symbol `%s' has no section"),
abfd, _bfd_coff_internal_syment_name (abfd, syment, buf));
}
@ -5293,6 +5307,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
if (dst.r_symndx < 0 || dst.r_symndx >= obj_conv_table_size (abfd))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: illegal symbol index %ld in relocs"),
abfd, (long) dst.r_symndx);
cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
@ -5332,6 +5347,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
if (cache_ptr->howto == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: illegal relocation type %d at address 0x%lx"),
abfd, dst.r_type, (long) dst.r_vaddr);
bfd_set_error (bfd_error_bad_value);

View file

@ -174,6 +174,7 @@ make_a_section_from_file (bfd *abfd,
if (!bfd_init_section_compress_status (abfd, return_section))
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: unable to initialize compress status for section %s"),
abfd, name);
return FALSE;
@ -197,6 +198,7 @@ make_a_section_from_file (bfd *abfd,
if (!bfd_init_section_decompress_status (abfd, return_section))
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: unable to initialize decompress status for section %s"),
abfd, name);
return FALSE;
@ -1705,6 +1707,7 @@ _bfd_coff_read_string_table (bfd *abfd)
if (strsize < STRING_SIZE_SIZE)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: bad string table size %lu"), abfd, (unsigned long) strsize);
bfd_set_error (bfd_error_bad_value);
return NULL;
@ -2953,6 +2956,7 @@ coff_gc_sweep (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
o->flags |= SEC_EXCLUDE;
if (info->print_gc_sections && o->size != 0)
/* xgettext: c-format */
_bfd_error_handler (_("Removing unused section '%s' in file '%B'"), sub, o->name);
#if 0

View file

@ -345,7 +345,7 @@ coff_link_add_symbols (bfd *abfd,
&& (*sym_hash)->root.type != bfd_link_hash_undefined
&& (*sym_hash)->root.type != bfd_link_hash_undefweak)
_bfd_error_handler
("Warning: symbol `%s' is both section and non-section",
(_("Warning: symbol `%s' is both section and non-section"),
name);
addit = FALSE;
@ -446,6 +446,7 @@ coff_link_add_symbols (bfd *abfd,
&& (BTYPE ((*sym_hash)->type) == T_NULL
|| BTYPE (sym.n_type) == T_NULL)))
_bfd_error_handler
/* xgettext: c-format */
(_("Warning: type of symbol `%s' changed from %d to %d in %B"),
abfd, name, (*sym_hash)->type, sym.n_type);
@ -2363,6 +2364,7 @@ _bfd_coff_link_input_bfd (struct coff_final_link_info *flaginfo, bfd *input_bfd)
&& o->reloc_count != 0)
{
_bfd_error_handler
/* xgettext: c-format */
(_("%B: relocs in section `%A', but it has no contents"),
input_bfd, o);
bfd_set_error (bfd_error_no_contents);
@ -2425,6 +2427,7 @@ _bfd_coff_link_input_bfd (struct coff_final_link_info *flaginfo, bfd *input_bfd)
/* Complain if definition comes from an excluded section. */
if (ps->flags & SEC_EXCLUDE)
(*flaginfo->info->callbacks->einfo)
/* xgettext: c-format */
(_("%X`%s' referenced in section `%A' of %B: "
"defined in discarded section `%A' of %B\n"),
h->root.root.string, o, input_bfd, ps, ps->owner);
@ -2722,6 +2725,7 @@ _bfd_coff_write_global_sym (struct bfd_hash_entry *bh, void *data)
&& (! obj_pe (output_bfd)
|| bfd_link_relocatable (flaginfo->info)))
_bfd_error_handler
/* xgettext: c-format */
(_("%s: %s: reloc overflow: 0x%lx > 0xffff"),
bfd_get_filename (output_bfd),
bfd_get_section_name (output_bfd, sec),
@ -2731,6 +2735,7 @@ _bfd_coff_write_global_sym (struct bfd_hash_entry *bh, void *data)
&& (! obj_pe (output_bfd)
|| bfd_link_relocatable (flaginfo->info)))
_bfd_error_handler
/* xgettext: c-format */
(_("%s: warning: %s: line number overflow: 0x%lx > 0xffff"),
bfd_get_filename (output_bfd),
bfd_get_section_name (output_bfd, sec),
@ -2955,7 +2960,8 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd,
|| (unsigned long) symndx >= obj_raw_syment_count (input_bfd))
{
_bfd_error_handler
("%B: illegal symbol index %ld in relocs", input_bfd, symndx);
/* xgettext: c-format */
(_("%B: illegal symbol index %ld in relocs"), input_bfd, symndx);
return FALSE;
}
else
@ -3116,6 +3122,7 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd,
break;
case bfd_reloc_outofrange:
_bfd_error_handler
/* xgettext: c-format */
(_("%B: bad reloc address 0x%lx in section `%A'"),
input_bfd, input_section, (unsigned long) rel->r_vaddr);
return FALSE;

View file

@ -807,6 +807,7 @@ coff_swap_scnhdr_out (bfd * abfd, void * in, void * out)
memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name));
buf[sizeof (scnhdr_int->s_name)] = '\0';
_bfd_error_handler
/* xgettext:c-format */
(_("%s: warning: %s: line number overflow: 0x%lx > 0xffff"),
bfd_get_filename (abfd),
buf, scnhdr_int->s_nlnno);
@ -821,6 +822,7 @@ coff_swap_scnhdr_out (bfd * abfd, void * in, void * out)
memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name));
buf[sizeof (scnhdr_int->s_name)] = '\0';
/* xgettext:c-format */
_bfd_error_handler (_("%s: %s: reloc overflow: 0x%lx > 0xffff"),
bfd_get_filename (abfd),
buf, scnhdr_int->s_nreloc);

View file

@ -188,6 +188,7 @@ bfd_arm_merge_machines (bfd *ibfd, bfd *obfd)
|| out == bfd_mach_arm_iWMMXt
|| out == bfd_mach_arm_iWMMXt2))
{
/* xgettext: c-format */
_bfd_error_handler (_("\
error: %B is compiled for the EP9312, whereas %B is compiled for XScale"),
ibfd, obfd);
@ -199,6 +200,7 @@ error: %B is compiled for the EP9312, whereas %B is compiled for XScale"),
|| in == bfd_mach_arm_iWMMXt
|| in == bfd_mach_arm_iWMMXt2))
{
/* xgettext: c-format */
_bfd_error_handler (_("\
error: %B is compiled for the EP9312, whereas %B is compiled for XScale"),
obfd, ibfd);
@ -332,6 +334,7 @@ bfd_arm_update_notes (bfd *abfd, const char *note_section)
(file_ptr) 0, buffer_size))
{
_bfd_error_handler
/* xgettext: c-format */
(_("warning: unable to update contents of %s section in %s"),
note_section, bfd_get_filename (abfd));
goto FAIL;

View file

@ -546,6 +546,7 @@ read_section (bfd * abfd,
that the client wants. Validate it here to avoid trouble later. */
if (offset != 0 && offset >= *section_size)
{
/* xgettext: c-format */
_bfd_error_handler (_("Dwarf Error: Offset (%lu)"
" greater than or equal to %s size (%lu)."),
(long) offset, section_name, *section_size);
@ -1717,6 +1718,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
if (lh.total_length > stash->dwarf_line_size)
{
_bfd_error_handler
/* xgettext: c-format */
(_("Dwarf Error: Line info data is bigger (0x%lx) than the section (0x%lx)"),
(long) lh.total_length, (long) stash->dwarf_line_size);
bfd_set_error (bfd_error_bad_value);
@ -2774,6 +2776,7 @@ parse_comp_unit (struct dwarf2_debug *stash,
if (addr_size > sizeof (bfd_vma))
{
_bfd_error_handler
/* xgettext: c-format */
(_("Dwarf Error: found address size '%u', this reader"
" can not handle sizes greater than '%u'."),
addr_size,

View file

@ -960,6 +960,7 @@ _bfd_ecoff_slurp_symbol_table (bfd *abfd)
{
bfd_get_symcount (abfd) = internal_ptr - internal;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: isymMax (%ld) is greater than ifdMax (%d)\n"),
abfd, ecoff_data (abfd)->debug_info.symbolic_header.isymMax,
ecoff_data (abfd)->debug_info.symbolic_header.ifdMax);
@ -1536,6 +1537,7 @@ _bfd_ecoff_print_symbol (bfd *abfd,
if (ECOFF_IS_STAB (&ecoff_ext.asym))
;
else if (ecoffsymbol (symbol)->local)
/* xgettext:c-format */
fprintf (file, _("\n End+1 symbol: %-7ld Type: %s"),
((long)
(AUX_GET_ISYM (bigendian,

View file

@ -591,6 +591,7 @@ _bfd_elf_merge_object_attributes (bfd *ibfd, struct bfd_link_info *info)
if (in_attr->i > 0 && strcmp (in_attr->s, "gnu") != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B: Object has vendor-specific contents that "
"must be processed by the '%s' toolchain"),
ibfd, in_attr->s);
@ -600,6 +601,7 @@ _bfd_elf_merge_object_attributes (bfd *ibfd, struct bfd_link_info *info)
if (in_attr->i != out_attr->i
|| (in_attr->i != 0 && strcmp (in_attr->s, out_attr->s) != 0))
{
/* xgettext:c-format */
_bfd_error_handler (_("error: %B: Object tag '%d, %s' is "
"incompatible with tag '%d, %s'"),
ibfd,

View file

@ -924,6 +924,7 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
&& read_value (abfd, buf - length, length, FALSE) == 0)
{
(*info->callbacks->minfo)
/* xgettext:c-format */
(_("discarding zero address range FDE in %B(%A).\n"),
abfd, sec);
this_inf->u.fde.cie_inf = NULL;
@ -1028,6 +1029,7 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
free_no_table:
(*info->callbacks->einfo)
/* xgettext:c-format */
(_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"),
abfd, sec);
hdr_info->u.dwarf.table = FALSE;
@ -1379,6 +1381,7 @@ _bfd_elf_discard_section_eh_frame
if (num_warnings_issued < 10)
{
(*info->callbacks->einfo)
/* xgettext:c-format */
(_("%P: FDE encoding in %B(%A) prevents .eh_frame_hdr"
" table being created.\n"), abfd, sec);
num_warnings_issued ++;
@ -1673,6 +1676,7 @@ _bfd_elf_write_section_eh_frame_entry (bfd *abfd, struct bfd_link_info *info,
addr = bfd_get_signed_32 (abfd, contents + offset) + offset;
if (addr <= last_addr)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: %s not in order"), sec->owner, sec->name);
return FALSE;
}
@ -1686,6 +1690,7 @@ _bfd_elf_write_section_eh_frame_entry (bfd *abfd, struct bfd_link_info *info,
addr -= (sec->output_section->vma + sec->output_offset + sec->rawsize);
if (addr & 1)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: %s invalid input section size"),
sec->owner, sec->name);
bfd_set_error (bfd_error_bad_value);
@ -1693,6 +1698,7 @@ _bfd_elf_write_section_eh_frame_entry (bfd *abfd, struct bfd_link_info *info,
}
if (last_addr >= addr + sec->rawsize)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: %s points past end of text section"),
sec->owner, sec->name);
bfd_set_error (bfd_error_bad_value);

View file

@ -138,6 +138,7 @@ _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
&& h->pointer_equality_needed)
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%F%P: dynamic STT_GNU_IFUNC symbol `%s' with pointer "
"equality in `%B' can not be used when making an "
"executable; recompile with -fPIE and relink with -pie\n"),

View file

@ -808,6 +808,7 @@ mn10300_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_MN10300_MAX)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised MN10300 reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -1023,6 +1024,7 @@ mn10300_do_tls_transition (bfd * input_bfd,
default:
_bfd_error_handler
/* xgettext:c-format */
(_("%s: Unsupported transition from %s to %s"),
bfd_get_filename (input_bfd),
elf_mn10300_howto_table[r_type].name,
@ -1215,6 +1217,7 @@ mn10300_elf_check_relocs (bfd *abfd,
tls_type = GOT_TLS_IE;
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B: %s' accessed both as normal and thread local symbol"),
abfd, h ? h->root.root.string : "<local>");
}
@ -2111,6 +2114,7 @@ mn10300_elf_relocate_section (bfd *output_bfd,
rel->r_offset) != (bfd_vma) -1)
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -2175,6 +2179,7 @@ mn10300_elf_relocate_section (bfd *output_bfd,
msg = _("error: inappropriate relocation type for shared"
" library (did you forget -fpic?)");
else if (r_type == R_MN10300_GOT32)
/* xgettext:c-format */
msg = _("%B: taking the address of protected function"
" '%s' cannot be done when making a shared library");
else

View file

@ -287,10 +287,12 @@ elf_s390_merge_obj_attributes (bfd *ibfd, struct bfd_link_info *info)
if (in_attr->i > 2)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses unknown vector ABI %d"), ibfd,
in_attr->i);
else if (out_attr->i > 2)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses unknown vector ABI %d"), obfd,
out_attr->i);
else if (in_attr->i != out_attr->i)
@ -302,6 +304,7 @@ elf_s390_merge_obj_attributes (bfd *ibfd, struct bfd_link_info *info)
const char abi_str[3][9] = { "none", "software", "hardware" };
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses vector %s ABI, %B uses %s ABI"),
ibfd, obfd, abi_str[in_attr->i], abi_str[out_attr->i]);
}

View file

@ -338,6 +338,7 @@ bfd_elf_string_from_elf_section (bfd *abfd,
if (hdr->sh_type != SHT_STRTAB && hdr->sh_type < SHT_LOOS)
{
/* PR 17512: file: f057ec89. */
/* xgettext:c-format */
_bfd_error_handler (_("%B: attempt to load strings from a non-string section (number %d)"),
abfd, shindex);
return NULL;
@ -351,6 +352,7 @@ bfd_elf_string_from_elf_section (bfd *abfd,
{
unsigned int shstrndx = elf_elfheader(abfd)->e_shstrndx;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: invalid string offset %u >= %lu for section `%s'"),
abfd, strindex, (unsigned long) hdr->sh_size,
(shindex == shstrndx && strindex == hdr->sh_name
@ -489,6 +491,7 @@ bfd_elf_get_elf_syms (bfd *ibfd,
if (!(*bed->s->swap_symbol_in) (ibfd, esym, shndx, isym))
{
symoffset += (esym - (bfd_byte *) extsym_buf) / extsym_size;
/* xgettext:c-format */
_bfd_error_handler (_("%B symbol number %lu references "
"nonexistent SHT_SYMTAB_SHNDX section"),
ibfd, (unsigned long) symoffset);
@ -645,6 +648,7 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
if (shdr->contents == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: corrupt size field in group section header: 0x%lx"), abfd, shdr->sh_size);
bfd_set_error (bfd_error_bad_value);
-- num_group;
@ -658,6 +662,7 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
!= shdr->sh_size))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: invalid size field in group section header: 0x%lx"), abfd, shdr->sh_size);
bfd_set_error (bfd_error_bad_value);
-- num_group;
@ -778,6 +783,7 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
if (elf_group_name (newsect) == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: no group info for section %A"),
abfd, newsect);
return FALSE;
@ -808,6 +814,7 @@ _bfd_elf_setup_sections (bfd *abfd)
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
if (bed->link_order_error_handler)
bed->link_order_error_handler
/* xgettext:c-format */
(_("%B: warning: sh_link not set for section `%A'"),
abfd, s);
}
@ -827,6 +834,7 @@ _bfd_elf_setup_sections (bfd *abfd)
if (linksec == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: sh_link [%d] in section `%A' is incorrect"),
s->owner, s, elfsec);
result = FALSE;
@ -839,6 +847,7 @@ _bfd_elf_setup_sections (bfd *abfd)
&& elf_next_in_group (s) == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: SHT_GROUP section [index %d] has no SHF_GROUP sections"),
abfd, elf_section_data (s)->this_idx);
result = FALSE;
@ -859,6 +868,7 @@ _bfd_elf_setup_sections (bfd *abfd)
if (shdr == NULL || shdr->bfd_section == NULL || shdr->contents == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: section group entry number %u is corrupt"),
abfd, i);
result = FALSE;
@ -883,6 +893,7 @@ _bfd_elf_setup_sections (bfd *abfd)
{
/* There are some unknown sections in the group. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unknown [%d] section `%s' in group [%s]"),
abfd,
(unsigned int) idx->shdr->sh_type,
@ -1149,6 +1160,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
if (!bfd_init_section_compress_status (abfd, newsect))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unable to initialize compress status for section %s"),
abfd, name);
return FALSE;
@ -1159,6 +1171,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
if (!bfd_init_section_decompress_status (abfd, newsect))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unable to initialize decompress status for section %s"),
abfd, name);
return FALSE;
@ -1337,6 +1350,7 @@ copy_special_section_fields (const bfd *ibfd,
/* FIXME: Should we install iheader->sh_link
if we could not find a match ? */
(* _bfd_error_handler)
/* xgettext:c-format */
(_("%B: Failed to find link section for section %d"), obfd, secnum);
}
@ -1363,6 +1377,7 @@ copy_special_section_fields (const bfd *ibfd,
}
else
(* _bfd_error_handler)
/* xgettext:c-format */
(_("%B: Failed to find info section for section %d"), obfd, secnum);
}
@ -2053,6 +2068,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
if (elf_onesymtab (abfd) != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: multiple symbol tables detected - ignoring the table in section %u"),
abfd, shindex);
goto success;
@ -2135,6 +2151,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
if (elf_dynsymtab (abfd) != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: multiple dynamic symbol tables detected - ignoring the table in section %u"),
abfd, shindex);
goto success;
@ -2246,6 +2263,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
if (hdr->sh_link >= num_sec)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: invalid link %lu for reloc section %s (index %u)"),
abfd, hdr->sh_link, name, shindex);
ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,
@ -2431,6 +2449,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
/* FIXME: How to properly handle allocated section reserved
for applications? */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: don't know how to handle allocated, application "
"specific section `%s' [0x%8x]"),
abfd, name, hdr->sh_type);
@ -2446,6 +2465,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
&& hdr->sh_type <= SHT_HIPROC)
/* FIXME: We should handle this section. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: don't know how to handle processor specific section "
"`%s' [0x%8x]"),
abfd, name, hdr->sh_type);
@ -2457,6 +2477,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
required to correctly process the section and the file should
be rejected with an error message. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: don't know how to handle OS specific section "
"`%s' [0x%8x]"),
abfd, name, hdr->sh_type);
@ -2470,6 +2491,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
else
/* FIXME: We should handle this section. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: don't know how to handle section `%s' [0x%8x]"),
abfd, name, hdr->sh_type);
@ -3173,6 +3195,7 @@ elf_fake_sections (bfd *abfd, asection *asect, void *fsarg)
if (asect->alignment_power >= (sizeof (bfd_vma) * 8) - 1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: error: Alignment power %d of section `%A' is too big"),
abfd, asect, asect->alignment_power);
arg->failed = TRUE;
@ -3644,6 +3667,7 @@ assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
if (section_number >= SHN_LORESERVE)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: too many sections: %u"),
abfd, section_number);
return FALSE;
@ -3728,6 +3752,7 @@ assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
{
asection *kept;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: sh_link of section `%A' points to discarded section `%A' of `%B'"),
abfd, d->this_hdr.bfd_section,
s, s->owner);
@ -3751,6 +3776,7 @@ assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
if (s->output_section == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: sh_link of section `%A' points to removed section `%A' of `%B'"),
abfd, d->this_hdr.bfd_section, s, s->owner);
bfd_set_error (bfd_error_bad_value);
@ -3771,6 +3797,7 @@ assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
= get_elf_backend_data (abfd);
if (bed->link_order_error_handler)
bed->link_order_error_handler
/* xgettext:c-format */
(_("%B: warning: sh_link not set for section `%A'"),
abfd, sec);
}
@ -5379,6 +5406,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
|| p_end < p_start))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: section %A lma %#lx adjusted to %#lx"), abfd, sec,
(unsigned long) s_start, (unsigned long) p_end);
adjust = 0;
@ -5515,6 +5543,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
&& !ELF_TBSS_SPECIAL (this_hdr, p))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: section `%A' can't be allocated in segment %d"),
abfd, sec, j);
print_segment_map (m);
@ -5562,6 +5591,7 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
{
if (hdr->sh_size != 0)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: allocated section `%s' not in segment"),
abfd,
(hdr->bfd_section == NULL
@ -6237,6 +6267,7 @@ _bfd_elf_symbol_from_bfd_symbol (bfd *abfd, asymbol **asym_ptr_ptr)
/* This case can occur when using --strip-symbol on a symbol
which is used in a relocation entry. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: symbol `%s' required but not present"),
abfd, bfd_asymbol_name (asym_ptr));
bfd_set_error (bfd_error_no_symbols);
@ -7188,6 +7219,7 @@ rewrite:
{
/* PR 17512: file: f17299af. */
if (segment->p_align > (bfd_vma) 1 << ((sizeof (bfd_vma) * 8) - 2))
/* xgettext:c-format */
_bfd_error_handler (_("\
%B: warning: segment alignment of 0x%llx is too large"),
ibfd, (long long) segment->p_align);
@ -7664,6 +7696,7 @@ error_return:
shndx = _bfd_elf_section_from_bfd_section (abfd, sec2);
if (shndx == SHN_BAD)
{
/* xgettext:c-format */
_bfd_error_handler (_("\
Unable to find equivalent output section for symbol '%s' from section '%s'"),
syms[idx]->name ? syms[idx]->name : "<Local sym>",
@ -8674,6 +8707,7 @@ _bfd_elf_validate_reloc (bfd *abfd, arelent *areloc)
fail:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unsupported relocation type %s"),
abfd, areloc->howto->name);
bfd_set_error (bfd_error_bad_value);

View file

@ -601,6 +601,7 @@ arc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
if (mach_ibfd != mach_obfd)
{
/* xgettext:c-format */
_bfd_error_handler (_("ERROR: Attempting to link %B "
"with a binary %s of different architecture"),
ibfd, bfd_get_filename (obfd));
@ -610,6 +611,7 @@ arc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
/* Warn if different flags. */
_bfd_error_handler
/* xgettext:c-format */
(_("%s: uses different e_flags (0x%lx) fields than "
"previous modules (0x%lx)"),
bfd_get_filename (ibfd), (long)in_flags, (long)out_flags);
@ -804,6 +806,7 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data,
{
if (reloc_data.reloc_addend == 0)
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): CMEM relocation to `%s' is invalid, "
"16 MSB should be 0x%04x (value is 0x%lx)"),
reloc_data.input_section->owner,
@ -814,6 +817,7 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data,
(relocation));
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): CMEM relocation to `%s+0x%lx' is invalid, "
"16 MSB should be 0x%04x (value is 0x%lx)"),
reloc_data.input_section->owner,
@ -1526,22 +1530,27 @@ elf_arc_relocate_section (bfd * output_bfd,
break;
case bfd_reloc_other:
/* xgettext:c-format */
msg = _("%B(%A): warning: unaligned access to symbol '%s' in the small data area");
break;
case bfd_reloc_outofrange:
/* xgettext:c-format */
msg = _("%B(%A): internal error: out of range error");
break;
case bfd_reloc_notsupported:
/* xgettext:c-format */
msg = _("%B(%A): internal error: unsupported relocation error");
break;
case bfd_reloc_dangerous:
/* xgettext:c-format */
msg = _("%B(%A): internal error: dangerous relocation");
break;
default:
/* xgettext:c-format */
msg = _("%B(%A): internal error: unknown error");
break;
}
@ -1724,6 +1733,7 @@ elf_arc_check_relocs (bfd * abfd,
/* bfd_elf_sym_name (abfd, symtab_hdr, isym, NULL); */
name = "UNKNOWN";
_bfd_error_handler
/* xgettext:c-format */
(_("\
%B: relocation %s against `%s' can not be used when making a shared object; recompile with -fPIC"),
abfd,

View file

@ -3998,8 +3998,7 @@ arm_type_of_stub (struct bfd_link_info *info,
- it's a Thumb->Arm call and blx is not available, or it's a
Thumb->Arm branch (not bl). A stub is needed in this case,
but only if this call is not through a PLT entry. Indeed,
PLT stubs handle mode switching already.
*/
PLT stubs handle mode switching already. */
if ((!thumb2_bl
&& (branch_offset > THM_MAX_FWD_BRANCH_OFFSET
|| (branch_offset < THM_MAX_BWD_BRANCH_OFFSET)))
@ -4021,7 +4020,8 @@ arm_type_of_stub (struct bfd_link_info *info,
PLT, use one that branches directly to the ARM PLT
stub. If we pretended we'd use the pre-PLT Thumb->ARM
stub, undo this now. */
if ((branch_type == ST_BRANCH_TO_THUMB) && use_plt && !thumb_only) {
if ((branch_type == ST_BRANCH_TO_THUMB) && use_plt && !thumb_only)
{
branch_type = ST_BRANCH_TO_ARM;
branch_offset += PLT_THUMB_STUB_SIZE;
}
@ -4032,13 +4032,10 @@ arm_type_of_stub (struct bfd_link_info *info,
if (!thumb_only)
{
if (input_sec->flags & SEC_ELF_PURECODE)
_bfd_error_handler (_("%B(%s): warning: long branch "
" veneers used in section with "
"SHF_ARM_PURECODE section "
"attribute is only supported"
" for M-profile targets that "
"implement the movw "
"instruction."));
_bfd_error_handler (_("\
%B(%A): warning: long branch veneers used in section with SHF_ARM_PURECODE section \
attribute is only supported for M-profile targets that implement the movw instruction."),
input_sec);
stub_type = (bfd_link_pic (info) | globals->pic_veneer)
/* PIC stubs. */
@ -4067,13 +4064,10 @@ arm_type_of_stub (struct bfd_link_info *info,
else
{
if (input_sec->flags & SEC_ELF_PURECODE)
_bfd_error_handler (_("%B(%s): warning: long branch "
" veneers used in section with "
"SHF_ARM_PURECODE section "
"attribute is only supported"
" for M-profile targets that "
"implement the movw "
"instruction."));
_bfd_error_handler (_("\
%B(%A): warning: long branch veneers used in section with SHF_ARM_PURECODE section \
attribute is only supported for M-profile targets that implement the movw instruction."),
input_sec);
stub_type = (bfd_link_pic (info) | globals->pic_veneer)
/* PIC stub. */
@ -8633,6 +8627,7 @@ bfd_elf32_arm_stm32l4xx_erratum_scan (bfd *abfd,
{
_bfd_error_handler
/* Note - overlong line used here to allow for translation. */
/* xgettext:c-format */
(_("\
%B(%A+0x%lx): error: multiple load detected in non-last IT block instruction : STM32L4XX veneer cannot be generated.\n"
"Use gcc option -mrestrict-it to generate only one instruction per IT block.\n"),
@ -9735,6 +9730,7 @@ elf32_arm_tls_relax (struct elf32_arm_link_hash_table *globals,
insn = (insn << 16)
| bfd_get_16 (input_bfd, contents + rel->r_offset + 2);
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unexpected Thumb instruction '0x%x' in TLS trampoline"),
input_bfd, input_sec, (unsigned long)rel->r_offset, insn);
return bfd_reloc_notsupported;
@ -9774,6 +9770,7 @@ elf32_arm_tls_relax (struct elf32_arm_link_hash_table *globals,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unexpected ARM instruction '0x%x' in TLS trampoline"),
input_bfd, input_sec, (unsigned long)rel->r_offset, insn);
return bfd_reloc_notsupported;
@ -11530,6 +11527,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unexpected Thumb instruction '0x%x' referenced by TLS_GOTDESC"),
input_bfd, input_section,
(unsigned long)rel->r_offset, insn);
@ -11553,6 +11551,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
default:
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unexpected ARM instruction '0x%x' referenced by TLS_GOTDESC"),
input_bfd, input_section,
(unsigned long)rel->r_offset, insn);
@ -11582,6 +11581,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (bfd_link_dll (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): R_ARM_TLS_LE32 relocation not permitted in shared object"),
input_bfd, input_section,
(long) rel->r_offset, howto->name);
@ -11795,6 +11795,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (negative == 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): Only ADD or SUB instructions are allowed for ALU group relocations"),
input_bfd, input_section,
(long) rel->r_offset, howto->name);
@ -11835,6 +11836,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
|| r_type == R_ARM_ALU_SB_G2) && residual != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): Overflow whilst splitting 0x%lx for group relocation %s"),
input_bfd, input_section,
(long) rel->r_offset, signed_value < 0 ? - signed_value : signed_value,
@ -11925,6 +11927,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (residual >= 0x1000)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): Overflow whilst splitting 0x%lx for group relocation %s"),
input_bfd, input_section,
(long) rel->r_offset, labs (signed_value), howto->name);
@ -12010,6 +12013,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (residual >= 0x100)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): Overflow whilst splitting 0x%lx for group relocation %s"),
input_bfd, input_section,
(long) rel->r_offset, labs (signed_value), howto->name);
@ -12097,6 +12101,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if ((residual & 0x3) != 0 || residual >= 0x400)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): Overflow whilst splitting 0x%lx for group relocation %s"),
input_bfd, input_section,
(long) rel->r_offset, labs (signed_value), howto->name);
@ -12360,6 +12365,7 @@ elf32_arm_relocate_section (bfd * output_bfd,
|| (howto->src_mask & (howto->src_mask + 1)))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): %s relocation against SEC_MERGE section"),
input_bfd, input_section,
(long) rel->r_offset, howto->name);
@ -12471,7 +12477,9 @@ elf32_arm_relocate_section (bfd * output_bfd,
{
_bfd_error_handler
((sym_type == STT_TLS
/* xgettext:c-format */
? _("%B(%A+0x%lx): %s used with TLS symbol %s")
/* xgettext:c-format */
: _("%B(%A+0x%lx): %s used with non-TLS symbol %s")),
input_bfd,
input_section,
@ -12524,6 +12532,7 @@ elf32_arm_relocate_section (bfd * output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -14096,7 +14105,6 @@ elf32_arm_print_private_bfd_data (bfd *abfd, void * ptr)
/* Ignore init flag - it may not be set, despite the flags field
containing valid data. */
/* xgettext:c-format */
fprintf (file, _("private flags = %lx:"), elf_elfheader (abfd)->e_flags);
switch (EF_ARM_EABI_VERSION (flags))
@ -16016,7 +16024,6 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED,
if (!bfd_elf32_arm_process_before_allocation (ibfd, info)
|| !bfd_elf32_arm_vfp11_erratum_scan (ibfd, info)
|| !bfd_elf32_arm_stm32l4xx_erratum_scan (ibfd, info))
/* xgettext:c-format */
_bfd_error_handler (_("Errors encountered processing file %s"),
ibfd->filename);
}

View file

@ -955,6 +955,7 @@ avr_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_AVR_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid AVR reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -3257,6 +3258,7 @@ avr_add_stub (const char *stub_name,
if (hsh == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: cannot create stub entry %s"),
NULL, stub_name);
return NULL;

View file

@ -1599,6 +1599,7 @@ bfin_relocate_section (bfd * output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable relocation against symbol `%s'"),
input_bfd,
input_section, (long) rel->r_offset, h->root.root.string);
@ -1629,6 +1630,7 @@ bfin_relocate_section (bfd * output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): reloc against `%s': error %d"),
input_bfd, input_section,
(long) rel->r_offset, name, (int) r);
@ -2730,6 +2732,7 @@ bfinfdpic_relocate_section (bfd * output_bfd,
rel->r_addend))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation at `%A+0x%x' references symbol `%s' with nonzero addend"),
input_bfd, input_section, rel->r_offset, name);
return FALSE;
@ -4908,6 +4911,7 @@ bfinfdpic_check_relocs (bfd *abfd, struct bfd_link_info *info,
default:
bad_reloc:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unsupported relocation type %i"),
abfd, ELF32_R_TYPE (rel->r_info));
return FALSE;

View file

@ -647,7 +647,7 @@ elf_cr16_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
if (code == cr16_reloc_map[i].bfd_reloc_enum)
return &cr16_elf_howto_table[cr16_reloc_map[i].cr16_reloc_type];
_bfd_error_handler ("Unsupported CR16 relocation type: 0x%x\n", code);
_bfd_error_handler (_("Unsupported CR16 relocation type: 0x%x\n"), code);
return NULL;
}
@ -675,6 +675,7 @@ elf_cr16_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
if (r_type >= R_CR16_MAX)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised CR16 reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);

View file

@ -182,6 +182,7 @@ elf_cr16c_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
if (r_type >= RINDEX_16C_MAX)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid CR16C reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -463,6 +463,7 @@ cris_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_CRIS_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid CRIS reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1110,6 +1111,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
!= (bfd_vma) -1))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: unresolvable relocation %s against symbol `%s'"),
input_bfd,
input_section,
@ -1172,8 +1174,10 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
{
_bfd_error_handler
((h->got.offset == (bfd_vma) -1)
/* xgettext:c-format */
? _("%B, section %A: No PLT nor GOT for relocation %s"
" against symbol `%s'")
/* xgettext:c-format */
: _("%B, section %A: No PLT for relocation %s"
" against symbol `%s'"),
input_bfd,
@ -1299,6 +1303,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
allowed to pass us these kinds of things. */
if (h == NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with non-zero addend %d"
" against local symbol"),
input_bfd,
@ -1307,6 +1312,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
rel->r_addend);
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with non-zero addend %d"
" against symbol `%s'"),
input_bfd,
@ -1333,6 +1339,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
&& h->root.type == bfd_link_hash_undefweak))))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s is"
" not allowed for global symbol: `%s'"),
input_bfd,
@ -1349,6 +1356,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (sgot == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with no GOT created"),
input_bfd,
input_section,
@ -1564,9 +1572,11 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
_bfd_error_handler
((h->root.type == bfd_link_hash_undefined)
/* We shouldn't get here for GCC-emitted code. */
/* xgettext:c-format */
? _("%B, section %A: relocation %s has an undefined"
" reference to `%s', perhaps a declaration mixup?")
: ("%B, section %A: relocation %s is"
/* xgettext:c-format */
: _("%B, section %A: relocation %s is"
" not allowed for `%s', a global symbol with default"
" visibility, perhaps a declaration mixup?"),
input_bfd,
@ -1650,6 +1660,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
symbols. Make this an error; the compiler isn't allowed
to pass us these kinds of things. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with non-zero addend %d"
" against symbol `%s'"),
input_bfd,
@ -1803,6 +1814,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
compiler isn't allowed to pass us these kinds of
things. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with non-zero addend %d"
" against symbol `%s'"),
input_bfd,
@ -1937,6 +1949,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
&& h->root.type != bfd_link_hash_undefined)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s is"
" not allowed for symbol: `%s'"
" which is defined outside the program,"
@ -3229,6 +3242,7 @@ cris_elf_check_relocs (bfd *abfd,
if (bfd_get_mach (dynobj) == bfd_mach_cris_v10_v32)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A:\n v10/v32 compatible object %s"
" must not contain a PIC relocation"),
abfd, sec);
@ -3337,6 +3351,7 @@ cris_elf_check_relocs (bfd *abfd,
if (bfd_link_pic (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A:\n relocation %s not valid"
" in a shared object;"
" typically an option mixup, recompile with -fPIC"),
@ -3551,6 +3566,7 @@ cris_elf_check_relocs (bfd *abfd,
{
/* FIXME: How do we make this optionally a warning only? */
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A:\n relocation %s should not"
" be used in a shared object; recompile with -fPIC"),
abfd,
@ -3973,6 +3989,7 @@ elf_cris_discard_excess_dso_dynamics (struct elf_cris_link_hash_entry *h,
{
/* FIXME: How do we make this optionally a warning only? */
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section `%A', to symbol `%s':\n"
" relocation %s should not be used"
" in a shared object; recompile with -fPIC"),

View file

@ -425,6 +425,7 @@ elf_crx_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
unsigned int r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_CRX_MAX)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised CRX reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);

View file

@ -230,6 +230,7 @@ d10v_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_D10V_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid D10V reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -518,6 +518,7 @@ d30v_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_D30V_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid D30V reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -536,6 +537,7 @@ d30v_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_D30V_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid D30V reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -372,6 +372,7 @@ epiphany_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_EPIPHANY_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid Epiphany reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -377,6 +377,7 @@ fr30_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_FR30_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid FR30 reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -2561,6 +2561,7 @@ frv_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
default:
if (r_type >= (unsigned int) R_FRV_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid FRV reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -2826,6 +2827,7 @@ elf32_frv_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
rel->r_addend))
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%H: relocation to `%s+%v'"
" may have caused the error above\n"),
input_bfd, input_section, rel->r_offset, name, rel->r_addend);
@ -3912,6 +3914,7 @@ elf32_frv_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
&& picrel->d.h->root.type == bfd_link_hash_undefined))
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%H: reloc against `%s' references a different segment\n"),
input_bfd, input_section, rel->r_offset, name);
}
@ -4062,6 +4065,7 @@ elf32_frv_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (msg)
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%H: reloc against `%s': %s\n"),
input_bfd, input_section, rel->r_offset, name, msg);
return FALSE;
@ -6267,6 +6271,7 @@ elf32_frv_check_relocs (bfd *abfd,
default:
bad_reloc:
info->callbacks->einfo
/* xgettext:c-format */
(_("%B: unsupported relocation type %i\n"),
abfd, ELF32_R_TYPE (rel->r_info));
return FALSE;
@ -6518,6 +6523,7 @@ frv_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
#ifndef FRV_NO_PIC_ERROR
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: compiled with %s and linked with modules that use non-pic relocations"),
bfd_get_filename (ibfd),
(new_flags & EF_FRV_BIGPIC) ? "-fPIC" : "-fpic");
@ -6571,6 +6577,7 @@ frv_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: compiled with %s and linked with modules compiled with %s"),
bfd_get_filename (ibfd), new_opt, old_opt);
}
@ -6583,6 +6590,7 @@ frv_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
old_flags |= new_partial;
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: uses different unknown e_flags (0x%lx) fields than previous modules (0x%lx)"),
bfd_get_filename (ibfd), (long)new_partial, (long)old_partial);
}

View file

@ -65,6 +65,7 @@ check_for_relocs (bfd * abfd, asection * o, void * failed)
Elf_Internal_Ehdr *ehdrp;
ehdrp = elf_elfheader (abfd);
/* xgettext:c-format */
_bfd_error_handler (_("%B: Relocations in generic ELF (EM: %d)"),
abfd, ehdrp->e_machine);

View file

@ -591,6 +591,7 @@ hppa_add_stub (const char *stub_name,
TRUE, FALSE);
if (hsh == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: cannot create stub entry %s"),
section->owner, stub_name);
return NULL;
@ -842,6 +843,7 @@ hppa_build_one_stub (struct bfd_hash_entry *bh, void *in_arg)
|| sym_value - 8 + (1 << (22 + 1)) >= (1 << (22 + 2))))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): cannot reach %s, recompile with -ffunction-sections"),
hsh->target_section->owner,
stub_sec,
@ -1280,6 +1282,7 @@ elf32_hppa_check_relocs (bfd *abfd,
if (bfd_link_pic (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s can not be used when making a shared object; recompile with -fPIC"),
abfd,
elf_hppa_howto_table[r_type].name);
@ -2788,6 +2791,7 @@ get_local_syms (bfd *output_bfd, bfd *input_bfd, struct bfd_link_info *info)
}
else
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: duplicate export stub %s"),
input_bfd, stub_name);
}
@ -3442,6 +3446,7 @@ final_link_relocate (asection *input_section,
and convert the associated add instruction, so issue an
error. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): %s fixup for insn 0x%x is not supported in a non-shared link"),
input_bfd,
input_section,
@ -3607,6 +3612,7 @@ final_link_relocate (asection *input_section,
&& value + addend + max_branch_offset >= 2*max_branch_offset)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): cannot reach %s, recompile with -ffunction-sections"),
input_bfd,
input_section,
@ -4297,6 +4303,7 @@ elf32_hppa_relocate_section (bfd *output_bfd,
if (rstatus == bfd_reloc_notsupported || !warned_undef)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): cannot handle %s for %s"),
input_bfd,
input_section,

View file

@ -303,6 +303,7 @@ i370_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_I370_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised I370 reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -354,7 +355,8 @@ i370_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
else /* Incompatible flags. */
{
_bfd_error_handler
("%B: uses different e_flags (0x%lx) fields than previous modules (0x%lx)",
/* xgettext:c-format */
(_("%B: uses different e_flags (0x%lx) fields than previous modules (0x%lx)"),
ibfd, (long) new_flags, (long) old_flags);
bfd_set_error (bfd_error_bad_value);
@ -1075,7 +1077,8 @@ i370_elf_relocate_section (bfd *output_bfd,
if ((unsigned) r_type >= (unsigned) R_I370_max
|| !i370_elf_howto_table[(int)r_type])
{
_bfd_error_handler ("%B: unknown relocation type %d",
/* xgettext:c-format */
_bfd_error_handler (_("%B: unknown relocation type %d"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
@ -1158,7 +1161,7 @@ i370_elf_relocate_section (bfd *output_bfd,
{
default:
_bfd_error_handler
("%B: unknown relocation type %d for symbol %s",
(_("%B: unknown relocation type %d for symbol %s"),
input_bfd, (int) r_type, sym_name);
bfd_set_error (bfd_error_bad_value);
@ -1299,7 +1302,8 @@ i370_elf_relocate_section (bfd *output_bfd,
case (int) R_I370_COPY:
case (int) R_I370_RELATIVE:
_bfd_error_handler
("%B: Relocation %s is not yet supported for symbol %s.",
/* xgettext:c-format */
(_("%B: Relocation %s is not yet supported for symbol %s."),
input_bfd,
i370_elf_howto_table[(int) r_type]->name,
sym_name);

View file

@ -383,6 +383,7 @@ elf_i386_rtype_to_howto (bfd *abfd, unsigned r_type)
&& ((indx = r_type - R_386_vt_offset) - R_386_ext2
>= R_386_vt - R_386_ext2))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, (int) r_type);
indx = R_386_NONE;
@ -1556,6 +1557,7 @@ elf_i386_tls_transition (struct bfd_link_info *info, bfd *abfd,
}
_bfd_error_handler
/* xgettext:c-format */
(_("%B: TLS transition from %s to %s against `%s' at 0x%lx "
"in section `%A' failed"),
abfd, sec, from->name, to->name, name,
@ -1643,6 +1645,7 @@ elf_i386_convert_load_reloc (bfd *abfd, Elf_Internal_Shdr *symtab_hdr,
name = h->root.root.string;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: direct GOT relocation R_386_GOT32X against `%s' without base register can not be used when making a shared object"),
abfd, name);
return FALSE;
@ -1898,6 +1901,7 @@ elf_i386_check_relocs (bfd *abfd,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
goto error_return;
@ -2099,6 +2103,7 @@ elf_i386_check_relocs (bfd *abfd,
name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and "
"thread local symbol"),
abfd, name);
@ -2187,6 +2192,7 @@ do_relocation:
name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unsupported non-PIC call to IFUNC `%s'"),
abfd, name);
bfd_set_error (bfd_error_bad_value);
@ -3061,6 +3067,7 @@ elf_i386_readonly_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if ((info->warn_shared_textrel && bfd_link_pic (info))
|| info->error_textrel)
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %B: warning: relocation against `%s' in readonly section `%A'\n"),
p->sec->owner, h->root.root.string,
p->sec);
@ -3272,6 +3279,7 @@ elf_i386_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
info->flags |= DF_TEXTREL;
if ((info->warn_shared_textrel && bfd_link_pic (info))
|| info->error_textrel)
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %B: warning: relocation in readonly section `%A'\n"),
p->sec->owner, p->sec);
}
@ -3768,6 +3776,7 @@ elf_i386_relocate_section (bfd *output_bfd,
>= R_386_ext2 - R_386_ext))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unrecognized relocation (0x%x) in section `%A'"),
input_bfd, input_section, r_type);
bfd_set_error (bfd_error_bad_value);
@ -4047,6 +4056,7 @@ bad_ifunc_reloc:
name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym,
NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against STT_GNU_IFUNC "
"symbol `%s' isn't supported"), input_bfd,
howto->name, name);
@ -4294,6 +4304,7 @@ disallow_got32:
name = h->root.root.string;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: direct GOT relocation %s against `%s' without base register can not be used when making a shared object"),
input_bfd, howto->name, name);
bfd_set_error (bfd_error_bad_value);
@ -4341,6 +4352,7 @@ disallow_got32:
}
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation R_386_GOTOFF against undefined %s `%s' can not be used when making a shared object"),
input_bfd, v, h->root.root.string);
bfd_set_error (bfd_error_bad_value);
@ -4352,6 +4364,7 @@ disallow_got32:
&& ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation R_386_GOTOFF against protected %s `%s' can not be used when making a shared object"),
input_bfd,
h->type == STT_FUNC ? "function" : "data",
@ -5143,6 +5156,7 @@ disallow_got32:
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -5182,6 +5196,7 @@ check_relocation_error:
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): reloc against `%s': error %d"),
input_bfd, input_section,
(long) rel->r_offset, name, (int) r);

View file

@ -136,6 +136,7 @@ elf32_i960_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
/* PR 17521: file: 9609b8d6. */
if (type >= R_960_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid i960 reloc number: %d"), abfd, type);
type = 0;
}

View file

@ -1241,6 +1241,7 @@ ip2k_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_IP2K_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid IP2K reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1293,6 +1294,7 @@ ip2k_final_link_relocate (reloc_howto_type * howto,
if (PAGENO (relocation + rel->r_addend) !=
ip2k_nominal_page_bits (input_bfd, input_section,
rel->r_offset, contents))
/* xgettext:c-format */
_bfd_error_handler (_("ip2k linker: missing page instruction at 0x%08lx (dest = 0x%08lx)."),
BASEADDR (input_section) + rel->r_offset,
relocation + rel->r_addend);
@ -1309,6 +1311,7 @@ ip2k_final_link_relocate (reloc_howto_type * howto,
&& (PAGENO (relocation + rel->r_addend) ==
ip2k_nominal_page_bits (input_bfd, input_section,
rel->r_offset - 2, contents)))
/* xgettext:c-format */
_bfd_error_handler (_("ip2k linker: redundant page instruction at 0x%08lx (dest = 0x%08lx)."),
page_addr,
relocation + rel->r_addend);

View file

@ -437,6 +437,7 @@ iq2000_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
default:
if (r_type >= (unsigned int) R_IQ2000_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid IQ2000 reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -827,6 +828,7 @@ iq2000_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: compiled with %s and linked with modules compiled with %s"),
bfd_get_filename (ibfd), new_opt, old_opt);
}
@ -840,6 +842,7 @@ iq2000_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)"),
bfd_get_filename (ibfd), (long)new_flags, (long)old_flags);
}

View file

@ -590,6 +590,7 @@ lm32_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_LM32_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid LM32 reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -301,6 +301,7 @@ m32c_info_to_howto_rela
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_M32C_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid M32C reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -879,6 +880,7 @@ m32c_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: compiled with %s and linked with modules compiled with %s"),
bfd_get_filename (ibfd), new_opt, old_opt);
}
@ -891,6 +893,7 @@ m32c_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)"),
bfd_get_filename (ibfd), (long)new_flags, (long)old_flags);
}

View file

@ -1282,6 +1282,7 @@ m32r_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type > (unsigned int) R_M32R_GNU_VTENTRY)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid M32R reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -2444,6 +2445,7 @@ m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (rel->r_info);
if (r_type < 0 || r_type >= (int) R_M32R_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unknown relocation type %d"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
@ -2565,6 +2567,7 @@ m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
!= (bfd_vma) -1))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -3009,6 +3012,7 @@ m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: The target (%s) of an %s relocation is in the wrong section (%A)"),
input_bfd,
sec,

View file

@ -386,6 +386,7 @@ m68hc11_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_M68HC11_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid M68HC11 reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -506,6 +506,7 @@ m68hc11_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_M68HC11_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid M68HC12 reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -161,6 +161,7 @@ m68hc12_add_stub (const char *stub_name, asection *section,
TRUE, FALSE);
if (stub_entry == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: cannot create stub entry %s"),
section->owner, stub_name);
return NULL;
@ -1166,6 +1167,7 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
&& m68hc11_addr_is_banked (pinfo, insn_addr)
&& phys_page != insn_page && !(e_flags & E_M68HC11_NO_BANK_WARNING))
{
/* xgettext:c-format */
msg = _("banked address [%lx:%04lx] (%lx) is not in the same bank "
"as current banked address [%lx:%04lx] (%lx)");
buf = xmalloc (strlen (msg) + 128);
@ -1181,6 +1183,7 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (phys_page != 0 && insn_page == 0)
{
/* xgettext:c-format */
msg = _("reference to a banked address [%lx:%04lx] in the "
"normal address space at %04lx");
buf = xmalloc (strlen (msg) + 128);
@ -1381,6 +1384,7 @@ _bfd_m68hc11_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
if (new_flags != old_flags)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: uses different e_flags (0x%lx) fields than previous modules (0x%lx)"),
ibfd, (unsigned long) new_flags, (unsigned long) old_flags);
ok = FALSE;

View file

@ -348,6 +348,7 @@ rtype_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst)
if (indx >= (unsigned int) R_68K_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, (int) indx);
indx = R_68K_NONE;
@ -507,7 +508,8 @@ static const bfd_byte elf_m68k_plt_entry[PLT_ENTRY_SIZE] =
0, 0, 0, 0 /* + .plt - . */
};
static const struct elf_m68k_plt_info elf_m68k_plt_info = {
static const struct elf_m68k_plt_info elf_m68k_plt_info =
{
PLT_ENTRY_SIZE,
elf_m68k_plt0_entry, { 4, 12 },
elf_m68k_plt_entry, { 4, 16 }, 8
@ -541,7 +543,8 @@ static const bfd_byte elf_isab_plt_entry[ISAB_PLT_ENTRY_SIZE] =
0, 0, 0, 0 /* + .plt - . */
};
static const struct elf_m68k_plt_info elf_isab_plt_info = {
static const struct elf_m68k_plt_info elf_isab_plt_info =
{
ISAB_PLT_ENTRY_SIZE,
elf_isab_plt0_entry, { 2, 12 },
elf_isab_plt_entry, { 2, 20 }, 12
@ -575,7 +578,8 @@ static const bfd_byte elf_isac_plt_entry[ISAC_PLT_ENTRY_SIZE] =
0, 0, 0, 0 /* replaced with .plt - . */
};
static const struct elf_m68k_plt_info elf_isac_plt_info = {
static const struct elf_m68k_plt_info elf_isac_plt_info =
{
ISAC_PLT_ENTRY_SIZE,
elf_isac_plt0_entry, { 2, 12},
elf_isac_plt_entry, { 2, 20 }, 12
@ -606,7 +610,8 @@ static const bfd_byte elf_cpu32_plt_entry[CPU32_PLT_ENTRY_SIZE] =
0, 0
};
static const struct elf_m68k_plt_info elf_cpu32_plt_info = {
static const struct elf_m68k_plt_info elf_cpu32_plt_info =
{
CPU32_PLT_ENTRY_SIZE,
elf_cpu32_plt0_entry, { 4, 12 },
elf_cpu32_plt_entry, { 4, 18 }, 10
@ -1671,12 +1676,14 @@ elf_m68k_add_entry_to_got (struct elf_m68k_got *got,
/* This BFD has too many relocation. */
{
if (got->n_slots[R_8] > ELF_M68K_R_8_MAX_N_SLOTS_IN_GOT (info))
/* xgettext:c-format */
_bfd_error_handler (_("%B: GOT overflow: "
"Number of relocations with 8-bit "
"offset > %d"),
abfd,
ELF_M68K_R_8_MAX_N_SLOTS_IN_GOT (info));
else
/* xgettext:c-format */
_bfd_error_handler (_("%B: GOT overflow: "
"Number of relocations with 8- or 16-bit "
"offset > %d"),
@ -3920,6 +3927,7 @@ elf_m68k_relocate_section (bfd *output_bfd,
if (bfd_link_dll (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): R_68K_TLS_LE32 relocation not permitted "
"in shared object"),
input_bfd, input_section, (long) rel->r_offset, howto->name);
@ -4119,6 +4127,7 @@ elf_m68k_relocate_section (bfd *output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -4154,7 +4163,9 @@ elf_m68k_relocate_section (bfd *output_bfd,
_bfd_error_handler
((sym_type == STT_TLS
/* xgettext:c-format */
? _("%B(%A+0x%lx): %s used with TLS symbol %s")
/* xgettext:c-format */
: _("%B(%A+0x%lx): %s used with non-TLS symbol %s")),
input_bfd,
input_section,
@ -4192,6 +4203,7 @@ elf_m68k_relocate_section (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): reloc against `%s': error %d"),
input_bfd, input_section,
(long) rel->r_offset, name, (int) r);

View file

@ -96,6 +96,7 @@ mcore_elf_unsupported_reloc (bfd * abfd,
{
BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0);
/* xgettext:c-format */
_bfd_error_handler (_("%B: Relocation %s (%d) is not currently supported.\n"),
abfd,
reloc_entry->howto->name,
@ -350,6 +351,7 @@ mcore_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_MCORE_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised MCore reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -434,6 +436,7 @@ mcore_elf_relocate_section (bfd * output_bfd,
if ((unsigned) r_type >= (unsigned) R_MCORE_max
|| ! mcore_elf_howto_table [(int)r_type])
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: Unknown relocation type %d\n"),
input_bfd, (int) r_type);
@ -448,6 +451,7 @@ mcore_elf_relocate_section (bfd * output_bfd,
/* Complain about known relocation that are not yet supported. */
if (howto->special_function == mcore_elf_unsupported_reloc)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: Relocation %s (%d) is not currently supported.\n"),
input_bfd,
howto->name,

View file

@ -142,6 +142,7 @@ mep_reloc_type_lookup
if (mep_elf_howto_table[type].type != type)
{
/* xgettext:c-format */
_bfd_error_handler (_("MeP: howto %d has type %d"),
type, mep_elf_howto_table[type].type);
abort ();
@ -385,6 +386,7 @@ mep_info_to_howto_rela
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_MEP_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid MEP reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -614,6 +616,7 @@ mep_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
old_flags = (old_flags & ~EF_MEP_CPU_MASK) | new_partial;
else
{
/* xgettext:c-format */
_bfd_error_handler (_("%B and %B are for different cores"), last_ibfd, ibfd);
bfd_set_error (bfd_error_invalid_target);
return FALSE;
@ -631,6 +634,7 @@ mep_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
old_flags = (old_flags & ~EF_MEP_INDEX_MASK) | new_partial;
else
{
/* xgettext:c-format */
_bfd_error_handler (_("%B and %B are for different configurations"), last_ibfd, ibfd);
bfd_set_error (bfd_error_invalid_target);
return FALSE;

View file

@ -898,6 +898,7 @@ metag_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_METAG_MAX)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid METAG reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1202,6 +1203,7 @@ metag_add_stub (const char *stub_name,
TRUE, FALSE);
if (hsh == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: cannot create stub entry %s"),
section->owner, stub_name);
return NULL;
@ -1928,6 +1930,7 @@ elf_metag_relocate_section (bfd *output_bfd,
if (bfd_link_pic (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): R_METAG_TLS_LE/IENONPIC relocation not permitted in shared object"),
input_bfd, input_section,
(long) rel->r_offset, howto->name);
@ -2286,6 +2289,7 @@ elf_metag_check_relocs (bfd *abfd,
else
name = bfd_elf_sym_name (abfd, symtab_hdr, isym, NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against `%s' can not be used when making a shared object; recompile with -fPIC"),
abfd, elf_metag_howto_table[r_type].name, name);
bfd_set_error (bfd_error_bad_value);

View file

@ -652,6 +652,7 @@ microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_MICROBLAZE_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised MicroBlaze reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -956,6 +957,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
if (r_type < 0 || r_type >= (int) R_MICROBLAZE_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%s: unknown relocation type %d"),
bfd_get_filename (input_bfd), (int) r_type);
bfd_set_error (bfd_error_bad_value);
@ -1083,6 +1085,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: The target (%s) of an %s relocation "
"is in the wrong section (%s)"),
bfd_get_filename (input_bfd),
@ -1130,6 +1133,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: The target (%s) of an %s relocation "
"is in the wrong section (%s)"),
bfd_get_filename (input_bfd),

View file

@ -133,6 +133,7 @@ moxie_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_MOXIE_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid Moxie reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -644,6 +644,7 @@ msp430_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
{
if (r_type >= (unsigned int) R_MSP430x_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid MSP430X reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -653,6 +654,7 @@ msp430_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
if (r_type >= (unsigned int) R_MSP430_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid MSP430 reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -2348,6 +2350,7 @@ static bfd_boolean
elf32_msp430_obj_attrs_handle_unknown (bfd *abfd, int tag)
{
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B: Unknown MSPABI object attribute %d"),
abfd, tag);
return TRUE;
@ -2440,6 +2443,7 @@ elf32_msp430_merge_mspabi_attributes (bfd *ibfd, struct bfd_link_info *info)
if (in_attr[OFBA_MSPABI_Tag_ISA].i != out_attr[OFBA_MSPABI_Tag_ISA].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses %s instructions but %B uses %s"),
ibfd, first_input_bfd,
isa_type (in_attr[OFBA_MSPABI_Tag_ISA].i),
@ -2452,6 +2456,7 @@ elf32_msp430_merge_mspabi_attributes (bfd *ibfd, struct bfd_link_info *info)
out_attr[OFBA_MSPABI_Tag_Code_Model].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses the %s code model whereas %B uses the %s code model"),
ibfd, first_input_bfd,
code_model (in_attr[OFBA_MSPABI_Tag_Code_Model].i),
@ -2464,6 +2469,7 @@ elf32_msp430_merge_mspabi_attributes (bfd *ibfd, struct bfd_link_info *info)
&& out_attr[OFBA_MSPABI_Tag_ISA].i != 2)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses the large code model but %B uses MSP430 instructions"),
ibfd, first_input_bfd);
result = FALSE;
@ -2474,6 +2480,7 @@ elf32_msp430_merge_mspabi_attributes (bfd *ibfd, struct bfd_link_info *info)
out_attr[OFBA_MSPABI_Tag_Data_Model].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses the %s data model whereas %B uses the %s data model"),
ibfd, first_input_bfd,
data_model (in_attr[OFBA_MSPABI_Tag_Data_Model].i),
@ -2486,6 +2493,7 @@ elf32_msp430_merge_mspabi_attributes (bfd *ibfd, struct bfd_link_info *info)
&& out_attr[OFBA_MSPABI_Tag_Data_Model].i != 1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses the small code model but %B uses the %s data model"),
ibfd, first_input_bfd,
data_model (out_attr[OFBA_MSPABI_Tag_Data_Model].i));
@ -2497,6 +2505,7 @@ elf32_msp430_merge_mspabi_attributes (bfd *ibfd, struct bfd_link_info *info)
&& out_attr[OFBA_MSPABI_Tag_ISA].i != 2)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses the %s data model but %B only uses MSP430 instructions"),
ibfd, first_input_bfd,
data_model (in_attr[OFBA_MSPABI_Tag_Data_Model].i));

View file

@ -238,6 +238,7 @@ mt_info_to_howto_rela
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_MT_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid MT reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -2970,6 +2970,7 @@ nds32_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type > R_NDS32_GNU_VTENTRY)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid NDS32 reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -4562,6 +4563,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (rel->r_info);
if (r_type >= R_NDS32_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: error: unknown relocation type %d."),
input_bfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -5205,6 +5207,7 @@ handle_sda:
{
/* Incorrect alignment. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A): warning: unaligned small data access of type %d."),
input_bfd, input_section, r_type);
ret = FALSE;
@ -5970,6 +5973,7 @@ nds32_check_vec_size (bfd *ibfd)
else if (nds32_vec_size != (flag_t & 0x3))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: ISR vector size mismatch"
" with previous modules, previous %u-byte, current %u-byte"),
ibfd,
@ -6138,6 +6142,7 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
if (in_version != out_version)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: Incompatible elf-versions %s and %s."),
ibfd, nds32_elfver_strtab[out_version],
nds32_elfver_strtab[in_version]);
@ -8779,8 +8784,7 @@ done_adjust_diff:
&& (blank_t2->offset > raddr
|| blank_t2->next->offset <= raddr))
_bfd_error_handler
(_("%B: %s\n"), abfd,
"Error: search_nds32_elf_blank reports wrong node");
(_("%B: Error: search_nds32_elf_blank reports wrong node\n"), abfd);
/* Mark reloc in deleted portion as NONE.
For some relocs like R_NDS32_LABEL that doesn't modify the
@ -9037,6 +9041,10 @@ relax_range_measurement (bfd *abfd)
#define IS_OPTIMIZE(addend) ((addend) & 0x40000000)
#define IS_16BIT_ON(addend) ((addend) & 0x20000000)
static const char * unrecognized_reloc_msg =
/* xgettext:c-format */
N_("%B: warning: %s points to unrecognized reloc at 0x%lx.");
/* Relax LONGCALL1 relocation for nds32_elf_relax_section. */
static bfd_boolean
@ -9087,9 +9095,8 @@ nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (hi_irelfn == irelend || lo_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL1 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL1",
(long) irel->r_offset);
return FALSE;
}
@ -9169,9 +9176,8 @@ nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (i1_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL2 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL2",
(long) irel->r_offset);
return FALSE;
}
@ -9276,9 +9282,8 @@ nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (hi_irelfn == irelend || lo_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL3 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL3",
(long) irel->r_offset);
return FALSE;
}
@ -9411,9 +9416,8 @@ nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_LO12S0_ORI_RELA, laddr + 4);
if (hi_irelfn == irelend || lo_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP1 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP1",
(long) irel->r_offset);
return FALSE;
}
@ -9618,9 +9622,8 @@ nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (i2_irelfn == irelend || cond_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP2 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP2",
(long) irel->r_offset);
return FALSE;
}
@ -9811,9 +9814,8 @@ nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (hi_irelfn == irelend || lo_irelfn == irelend || cond_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP3 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP3",
(long) irel->r_offset);
return FALSE;
}
@ -9992,9 +9994,8 @@ nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (hi_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL4 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4",
(long) irel->r_offset);
return FALSE;
}
@ -10023,9 +10024,8 @@ nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (ptr_irel == irelend || em_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL4 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4",
(long) irel->r_offset);
return FALSE;
}
/* Check these is enough space to insert jal in R_NDS32_EMPTY. */
@ -10095,9 +10095,8 @@ nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_25_PCREL_RELA, irel->r_addend);
if (cond_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL5 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL5",
(long) irel->r_offset);
return FALSE;
}
@ -10174,9 +10173,8 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (em_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL6 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL6",
(long) irel->r_offset);
return FALSE;
}
@ -10213,9 +10211,8 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_PTR_RESOLVED, irel->r_addend);
if (cond_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL6 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd,
"R_NDS32_LONGCALL6", (long) irel->r_offset);
return FALSE;
}
cond_irel->r_addend = 1;
@ -10263,9 +10260,8 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_PTR_RESOLVED, irel->r_addend);
if (cond_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGCALL6 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd,
"R_NDS32_LONGCALL6", (long) irel->r_offset);
return FALSE;
}
cond_irel->r_addend = 1;
@ -10314,9 +10310,8 @@ nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (hi_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP4 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4",
(long) irel->r_offset);
return FALSE;
}
@ -10337,9 +10332,8 @@ nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (ptr_irel == irelend || em_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP4 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4",
(long) irel->r_offset);
return FALSE;
}
@ -10412,9 +10406,8 @@ nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_25_PCREL_RELA, irel->r_addend);
if (cond_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP5 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP5",
(long) irel->r_offset);
return FALSE;
}
@ -10542,9 +10535,8 @@ nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (em_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP6 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP6",
(long) irel->r_offset);
return FALSE;
}
@ -10713,9 +10705,8 @@ nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
R_NDS32_15_PCREL_RELA, irel->r_addend);
if (cond_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LONGJUMP7 points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP7",
(long) irel->r_offset);
return FALSE;
}
@ -10819,9 +10810,8 @@ nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd,
if (hi_irelfn == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_LOADSTORE points to unrecognized"
"reloc at 0x%lx.", abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LOADSTORE",
(long) irel->r_offset);
return FALSE;
}
@ -11294,9 +11284,8 @@ nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel,
if (re_irel == irelend)
{
_bfd_error_handler
("%B: warning: R_NDS32_PTR points to unrecognized reloc at 0x%lx.",
abfd, (long) irel->r_offset);
_bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_PTR",
(long) irel->r_offset);
return FALSE;
}
@ -12788,6 +12777,7 @@ nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
{
/* Begin of the region. */
if (begin_rel)
/* xgettext:c-format */
_bfd_error_handler (_("%B: Nested OMIT_FP in %A."), abfd, sec);
begin_rel = irel;
@ -12806,6 +12796,7 @@ nds32_relax_fp_as_gp (struct bfd_link_info *link_info,
if (begin_rel == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: Unmatched OMIT_FP in %A."), abfd, sec);
continue;
}
@ -13088,6 +13079,7 @@ nds32_elf_get_relocated_section_contents (bfd *abfd,
complete binaries. Do not abort, but issue an error
message instead. */
link_info->callbacks->einfo
/* xgettext:c-format */
(_("%X%P: %B(%A): relocation \"%R\" goes out of range\n"),
abfd, input_section, * parent);
goto error_return;
@ -15497,6 +15489,7 @@ nds32_elf_ex9_build_hash_table (bfd *abfd, asection *sec,
{
/* Incorrect alignment. */
_bfd_error_handler
/* xgettext:c-format */
(_("%s: warning: unaligned small data access. "
"For entry: {%d, %d, %d}, addr = 0x%x, align = 0x%x."),
bfd_get_filename (abfd), irel->r_offset,

View file

@ -2225,6 +2225,7 @@ nios2_add_stub (const char *stub_name,
TRUE, FALSE);
if (hsh == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: cannot create stub entry %s"),
section->owner,
stub_name);
@ -2962,6 +2963,7 @@ nios2_elf32_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
/* So far, the only incompatible flags denote incompatible
architectures. */
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B: Conflicting CPU architectures %d/%d"),
ibfd, new_flags, old_flags);
bfd_set_error (bfd_error_bad_value);
@ -3846,6 +3848,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
{
if (h)
name = h->root.root.string;
/* xgettext:c-format */
format = _("Unable to reach %s (at 0x%08x) from the "
"global pointer (at 0x%08x) because the "
"offset (%d) is out of the allowed range, "
@ -4367,6 +4370,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
if (bfd_link_dll (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): R_NIOS2_TLS_LE16 relocation not "
"permitted in shared object"),
input_bfd, input_section,

View file

@ -740,6 +740,7 @@ or1k_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_OR1K_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid OR1K reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1643,6 +1644,7 @@ or1k_elf_check_relocs (bfd *abfd,
name + 5) != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: bad relocation section name `%s\'"),
abfd, name);
}

View file

@ -321,6 +321,7 @@ pj_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
if (r >= R_PJ_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised PicoJava reloc number: %d"),
abfd, r);
bfd_set_error (bfd_error_bad_value);

View file

@ -2041,6 +2041,7 @@ ppc_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_PPC_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised PPC reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -2052,6 +2053,7 @@ ppc_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
ELF32_R_TYPE (dst->r_info) is necessarily a valid relocation. */
if (!cache_ptr->howto)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -2758,6 +2760,7 @@ ppc_elf_begin_write_processing (bfd *abfd, struct bfd_link_info *link_info)
if (asec == NULL)
continue;
/* xgettext:c-format */
error_message = _("corrupt %s section in %B");
length = asec->size;
if (length < 20)
@ -2777,6 +2780,7 @@ ppc_elf_begin_write_processing (bfd *abfd, struct bfd_link_info *link_info)
if (bfd_seek (ibfd, asec->filepos, SEEK_SET) != 0
|| (bfd_bread (buffer, length, ibfd) != length))
{
/* xgettext:c-format */
error_message = _("unable to read in %s section from %B");
goto fail;
}
@ -2818,6 +2822,7 @@ ppc_elf_begin_write_processing (bfd *abfd, struct bfd_link_info *link_info)
if (asec && ! bfd_set_section_size (abfd, asec, 20 + num_entries * 4))
{
ibfd = abfd;
/* xgettext:c-format */
error_message = _("warning: unable to set size of %s section in %B");
}
}
@ -3969,6 +3974,7 @@ static void
bad_shared_reloc (bfd *abfd, enum elf_ppc_reloc_type r_type)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s cannot be used when making a shared object"),
abfd,
ppc_elf_howto_table[r_type]->name);
@ -4322,6 +4328,7 @@ ppc_elf_check_relocs (bfd *abfd,
/* It does not make sense to have a procedure linkage
table entry for a non-ifunc local symbol. */
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: %s reloc against local symbol\n"),
abfd, sec, rel->r_offset,
ppc_elf_howto_table[r_type]->name);
@ -4682,16 +4689,20 @@ _bfd_elf_ppc_merge_fp_attributes (bfd *ibfd, struct bfd_link_info *info)
}
else if (out_fp != 2 && in_fp == 2)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses hard float, %B uses soft float"), obfd, ibfd);
else if (out_fp == 2 && in_fp != 2)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses hard float, %B uses soft float"), ibfd, obfd);
else if (out_fp == 1 && in_fp == 3)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses double-precision hard float, "
"%B uses single-precision hard float"), obfd, ibfd);
else if (out_fp == 3 && in_fp == 1)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses double-precision hard float, "
"%B uses single-precision hard float"), ibfd, obfd);
@ -4706,18 +4717,22 @@ _bfd_elf_ppc_merge_fp_attributes (bfd *ibfd, struct bfd_link_info *info)
}
else if (out_fp != 2 * 4 && in_fp == 2 * 4)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses 64-bit long double, "
"%B uses 128-bit long double"), ibfd, obfd);
else if (in_fp != 2 * 4 && out_fp == 2 * 4)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses 64-bit long double, "
"%B uses 128-bit long double"), obfd, ibfd);
else if (out_fp == 1 * 4 && in_fp == 3 * 4)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses IBM long double, "
"%B uses IEEE long double"), ibfd, obfd);
else if (out_fp == 3 * 4 && in_fp == 1 * 4)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses IBM long double, "
"%B uses IEEE long double"), obfd, ibfd);
}
@ -4768,10 +4783,12 @@ ppc_elf_merge_obj_attributes (bfd *ibfd, struct bfd_link_info *info)
}
else if (out_vec < in_vec)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses AltiVec vector ABI, %B uses SPE vector ABI"),
obfd, ibfd);
else if (out_vec > in_vec)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses AltiVec vector ABI, %B uses SPE vector ABI"),
ibfd, obfd);
}
@ -4794,10 +4811,12 @@ ppc_elf_merge_obj_attributes (bfd *ibfd, struct bfd_link_info *info)
}
else if (out_struct < in_struct)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses r3/r4 for small structure returns, "
"%B uses memory"), obfd, ibfd);
else if (out_struct > in_struct)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B uses r3/r4 for small structure returns, "
"%B uses memory"), ibfd, obfd);
}
@ -4888,6 +4907,7 @@ ppc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: uses different e_flags (0x%lx) fields "
"than previous modules (0x%lx)"),
ibfd, (long) new_flags, (long) old_flags);
@ -8253,6 +8273,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
}
else
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: error: %s with unexpected instruction %x\n"),
input_bfd, input_section, rel->r_offset,
"R_PPC_ADDR16_HA", insn);
@ -8287,6 +8308,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
}
else
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: error: %s with unexpected instruction %x\n"),
input_bfd, input_section, rel->r_offset,
"R_PPC_ADDR16_LO", insn);
@ -8342,6 +8364,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
is pointing into a .got2 section (and how far
into .got2). */
info->callbacks->einfo
/* xgettext:c-format */
(_("%X%P: %H: unsupported bss-plt -fPIC ifunc %s\n"),
input_bfd, input_section, rel->r_offset, sym_name);
}
@ -8394,6 +8417,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
{
default:
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: unknown relocation type %d for symbol %s\n"),
input_bfd, (int) r_type, sym_name);
@ -8672,6 +8696,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
got at entry m+n bears little relation to the entry m. */
if (addend != 0)
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: non-zero addend on %s reloc against `%s'\n"),
input_bfd, input_section, rel->r_offset,
howto->name,
@ -8703,6 +8728,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
local won't have the +32k reloc addend trick marking
-fPIC code, so the linker won't know whether r30 is
_GLOBAL_OFFSET_TABLE_ or pointing into a .got2 section. */
/* xgettext:c-format */
info->callbacks->einfo (_("%X%P: %H: @local call to ifunc %s\n"),
input_bfd, input_section, rel->r_offset,
h->root.root.string);
@ -8892,6 +8918,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
So we'll segfault when trying to run the
indirection function to resolve the reloc. */
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: relocation %s for indirect "
"function %s unsupported\n"),
input_bfd, input_section, rel->r_offset,
@ -9150,6 +9177,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
|| strcmp (name, ".sbss") == 0))
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: the target (%s) of a %s relocation is "
"in the wrong output section (%s)\n"),
input_bfd,
@ -9180,6 +9208,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
|| strcmp (name, ".sbss2") == 0))
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: the target (%s) of a %s relocation is "
"in the wrong output section (%s)\n"),
input_bfd,
@ -9264,6 +9293,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
else
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: the target (%s) of a %s relocation is "
"in the wrong output section (%s)\n"),
input_bfd,
@ -9358,6 +9388,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: the target (%s) of a %s relocation is "
"in the wrong output section (%s)"),
input_bfd,
@ -9455,6 +9486,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
case R_PPC_EMB_RELST_HA:
case R_PPC_EMB_BIT_FLD:
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: relocation %s is not yet supported for symbol %s\n"),
input_bfd,
howto->name,
@ -9539,6 +9571,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
{
relocation ^= lobit;
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: error: %s against `%s' not a multiple of %u\n"),
input_bfd, input_section, rel->r_offset,
howto->name, sym_name, mask + 1);
@ -9567,6 +9600,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: unresolvable %s relocation against symbol `%s'\n"),
input_bfd, input_section, rel->r_offset,
howto->name,
@ -9647,6 +9681,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
else
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: %s reloc against `%s': error %d\n"),
input_bfd, input_section, rel->r_offset,
howto->name, sym_name, (int) r);
@ -10452,6 +10487,7 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd,
}
else
{
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %s not defined in linker created %s\n"),
htab->elf.hgot->root.root.string,
(htab->sgotplt != NULL

View file

@ -287,6 +287,7 @@ rl78_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_RL78_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid RL78 reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1079,6 +1080,7 @@ rl78_elf_relocate_section
/* Catch the case of a missing function declaration
and emit a more helpful error message. */
if (r_type == R_RL78_DIR24S_PCREL)
/* xgettext:c-format */
msg = _("%B(%A): error: call to undefined function '%s'");
else
(*info->callbacks->reloc_overflow)
@ -1092,22 +1094,27 @@ rl78_elf_relocate_section
break;
case bfd_reloc_other:
/* xgettext:c-format */
msg = _("%B(%A): warning: unaligned access to symbol '%s' in the small data area");
break;
case bfd_reloc_outofrange:
/* xgettext:c-format */
msg = _("%B(%A): internal error: out of range error");
break;
case bfd_reloc_notsupported:
/* xgettext:c-format */
msg = _("%B(%A): internal error: unsupported relocation error");
break;
case bfd_reloc_dangerous:
/* xgettext:c-format */
msg = _("%B(%A): internal error: dangerous relocation");
break;
default:
/* xgettext:c-format */
msg = _("%B(%A): internal error: unknown error");
break;
}
@ -1194,6 +1201,7 @@ rl78_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("RL78 ABI conflict: G10 file %s cannot be linked with %s file %s"),
bfd_get_filename (ibfd),
rl78_cpu_name (out_cpu), bfd_get_filename (obfd));
@ -1210,6 +1218,7 @@ rl78_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("RL78 ABI conflict: cannot link %s file %s with %s file %s"),
rl78_cpu_name (in_cpu), bfd_get_filename (ibfd),
rl78_cpu_name (out_cpu), bfd_get_filename (obfd));
@ -1222,9 +1231,11 @@ rl78_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
(_("RL78 merge conflict: cannot link 32-bit and 64-bit objects together"));
if (old_flags & E_FLAG_RL78_64BIT_DOUBLES)
/* xgettext:c-format */
_bfd_error_handler (_("- %s is 64-bit, %s is not"),
bfd_get_filename (obfd), bfd_get_filename (ibfd));
else
/* xgettext:c-format */
_bfd_error_handler (_("- %s is 64-bit, %s is not"),
bfd_get_filename (ibfd), bfd_get_filename (obfd));
error = TRUE;

View file

@ -309,6 +309,7 @@ rx_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_RX_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid RX reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -589,12 +590,14 @@ rx_elf_relocate_section
if (table_end_cache <= entry_vma || entry_vma < table_start_cache)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B:%A: table entry %s outside table"),
input_bfd, input_section,
name);
}
else if ((int) (entry_vma - table_start_cache) % 4)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B:%A: table entry %s not word-aligned within table"),
input_bfd, input_section,
name);
@ -660,6 +663,7 @@ rx_elf_relocate_section
#define ALIGN(m) if (relocation & m) r = bfd_reloc_other;
#define OP(i) (contents[rel->r_offset + (i)])
#define WARN_REDHAT(type) \
/* xgettext:c-format */ \
_bfd_error_handler (_("%B:%A: Warning: deprecated Red Hat reloc " type " detected against: %s."), \
input_bfd, input_section, name)
@ -678,6 +682,7 @@ rx_elf_relocate_section
&& strcmp (name, "__gp") != 0 \
&& strcmp (name, "__romdatastart") != 0 \
&& !saw_subtract) \
/* xgettext:c-format */ \
_bfd_error_handler (_("%B(%A): unsafe PID relocation %s at 0x%08lx (against %s in %s)"), \
input_bfd, input_section, howto->name, \
input_section->output_section->vma + input_section->output_offset + rel->r_offset, \
@ -1425,6 +1430,7 @@ rx_elf_relocate_section
/* Catch the case of a missing function declaration
and emit a more helpful error message. */
if (r_type == R_RX_DIR24S_PCREL)
/* xgettext:c-format */
msg = _("%B(%A): error: call to undefined function '%s'");
else
(*info->callbacks->reloc_overflow)
@ -1438,22 +1444,27 @@ rx_elf_relocate_section
break;
case bfd_reloc_other:
/* xgettext:c-format */
msg = _("%B(%A): warning: unaligned access to symbol '%s' in the small data area");
break;
case bfd_reloc_outofrange:
/* xgettext:c-format */
msg = _("%B(%A): internal error: out of range error");
break;
case bfd_reloc_notsupported:
/* xgettext:c-format */
msg = _("%B(%A): internal error: unsupported relocation error");
break;
case bfd_reloc_dangerous:
/* xgettext:c-format */
msg = _("%B(%A): internal error: dangerous relocation");
break;
default:
/* xgettext:c-format */
msg = _("%B(%A): internal error: unknown error");
break;
}
@ -3131,11 +3142,11 @@ rx_elf_merge_private_bfd_data (bfd * ibfd, struct bfd_link_info *info)
}
else
{
_bfd_error_handler ("There is a conflict merging the ELF header flags from %s",
_bfd_error_handler (_("There is a conflict merging the ELF header flags from %s"),
bfd_get_filename (ibfd));
_bfd_error_handler (" the input file's flags: %s",
_bfd_error_handler (_(" the input file's flags: %s"),
describe_flags (new_flags));
_bfd_error_handler (" the output file's flags: %s",
_bfd_error_handler (_(" the output file's flags: %s"),
describe_flags (old_flags));
error = TRUE;
}
@ -3727,6 +3738,7 @@ rx_table_find (struct bfd_hash_entry *vent, void *vinfo)
if (!h || (h->type != bfd_link_hash_defined
&& h->type != bfd_link_hash_defweak))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B:%A: table %s missing corresponding %s"),
abfd, sec, name, buf);
return TRUE;
@ -3734,6 +3746,7 @@ rx_table_find (struct bfd_hash_entry *vent, void *vinfo)
if (h->u.def.section != ent->u.def.section)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B:%A: %s and %s must be in the same input section"),
h->u.def.section->owner, h->u.def.section,
name, buf);

View file

@ -342,6 +342,7 @@ elf_s390_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
default:
if (r_type >= sizeof (elf_howto_table) / sizeof (elf_howto_table[0]))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, (int) r_type);
r_type = R_390_NONE;
@ -1002,6 +1003,7 @@ elf_s390_check_relocs (bfd *abfd,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
return FALSE;
@ -1233,6 +1235,7 @@ elf_s390_check_relocs (bfd *abfd,
if (old_tls_type == GOT_NORMAL || tls_type == GOT_NORMAL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and thread local symbol"),
abfd, h->root.root.string);
return FALSE;
@ -2345,6 +2348,7 @@ invalid_tls_insn (bfd *input_bfd,
howto = elf_howto_table + ELF32_R_TYPE (rel->r_info);
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): invalid instruction for TLS relocation %s"),
input_bfd,
input_section,
@ -3395,6 +3399,7 @@ elf_s390_relocate_section (bfd *output_bfd,
&& _bfd_elf_section_offset (output_bfd, info, input_section,
rel->r_offset) != (bfd_vma) -1)
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -3451,6 +3456,7 @@ elf_s390_relocate_section (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): reloc against `%s': error %d"),
input_bfd, input_section,
(long) rel->r_offset, name, (int) r);

View file

@ -2826,6 +2826,7 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
else if (r_symndx >= extsymoff + NUM_SHDR_ENTRIES (symtab_hdr))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: Malformed reloc detected for section %s"), abfd, name);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -2883,6 +2884,7 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
if (h == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: CALL15 reloc at 0x%lx not against global symbol"),
abfd, (unsigned long) rel->r_offset);
bfd_set_error (bfd_error_bad_value);

View file

@ -2632,6 +2632,7 @@ s7_bfd_score_elf_check_relocs (bfd *abfd,
else if (r_symndx >= extsymoff + NUM_SHDR_ENTRIES (symtab_hdr))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: Malformed reloc detected for section %s"), abfd, name);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -2689,6 +2690,7 @@ s7_bfd_score_elf_check_relocs (bfd *abfd,
if (h == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: CALL15 reloc at 0x%lx not against global symbol"),
abfd, (unsigned long) rel->r_offset);
bfd_set_error (bfd_error_bad_value);

View file

@ -126,6 +126,7 @@ sh_symbian_import_as (struct bfd_link_info *info, bfd * abfd,
return TRUE;
bfd_set_error (bfd_error_invalid_operation);
/* xgettext:c-format */
_bfd_error_handler (_("%B: IMPORT AS directive for %s conceals previous IMPORT AS"),
abfd, current_name);
return FALSE;
@ -379,6 +380,7 @@ sh_symbian_process_embedded_commands (struct bfd_link_info *info, bfd * abfd,
(long) (directive - (char *) contents));
bfd_set_error (bfd_error_invalid_operation);
/* xgettext:c-format */
_bfd_error_handler (_("%B: Unrecognised .directive command: %s"),
abfd, directive);
break;
@ -496,6 +498,7 @@ sh_symbian_relocate_section (bfd * output_bfd,
if (new_hash == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: Failed to add renamed symbol %s"),
input_bfd, ptr->new_name);
continue;

View file

@ -487,6 +487,7 @@ sh_elf_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst)
|| (r >= R_SH_FIRST_INVALID_RELOC_5 && r <= R_SH_LAST_INVALID_RELOC_5)
|| (r >= R_SH_FIRST_INVALID_RELOC_6 && r <= R_SH_LAST_INVALID_RELOC_6))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised SH reloc number: %d"),
abfd, r);
bfd_set_error (bfd_error_bad_value);
@ -575,6 +576,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
laddr = irel->r_offset + 4 + irel->r_addend;
if (laddr >= sec->size)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: 0x%lx: warning: bad R_SH_USES offset"),
abfd, (unsigned long) irel->r_offset);
continue;
@ -586,6 +588,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
if ((insn & 0xf000) != 0xd000)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: warning: R_SH_USES points to unrecognized insn 0x%x"),
abfd, (unsigned long) irel->r_offset, insn);
continue;
@ -603,6 +606,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
if (paddr >= sec->size)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: warning: bad R_SH_USES load offset"),
abfd, (unsigned long) irel->r_offset);
continue;
@ -618,6 +622,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
if (irelfn >= irelend)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: warning: could not find expected reloc"),
abfd, (unsigned long) paddr);
continue;
@ -646,6 +651,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
!= (unsigned int) _bfd_elf_section_from_bfd_section (abfd, sec))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: warning: symbol in unexpected section"),
abfd, (unsigned long) paddr);
continue;
@ -775,6 +781,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
if (irelcount >= irelend)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: warning: could not find expected COUNT reloc"),
abfd, (unsigned long) paddr);
continue;
@ -784,6 +791,7 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
just deleted one. */
if (irelcount->r_addend == 0)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: 0x%lx: warning: bad count"),
abfd, (unsigned long) paddr);
continue;
@ -1187,6 +1195,7 @@ sh_elf_relax_delete_bytes (bfd *abfd, asection *sec, bfd_vma addr,
if (overflow)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: reloc overflow while relaxing"),
abfd, (unsigned long) irel->r_offset);
bfd_set_error (bfd_error_bad_value);
@ -1557,6 +1566,7 @@ sh_elf_swap_insns (bfd *abfd, asection *sec, void *relocs,
if (overflow)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: reloc overflow while relaxing"),
abfd, (unsigned long) irel->r_offset);
bfd_set_error (bfd_error_bad_value);
@ -4007,6 +4017,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (howto->rightshift || howto->src_mask != 0xffffffff)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): %s relocation against SEC_MERGE section"),
input_bfd, input_section,
(long) rel->r_offset, howto->name);
@ -4124,6 +4135,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
!= (bfd_vma) -1))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -4202,6 +4214,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (disp & mask)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: unaligned branch target for relax-support relocation"),
input_section->owner,
(unsigned long) rel->r_offset);
@ -4235,6 +4248,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (relocation & 3)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: unaligned %s relocation 0x%lx"),
input_section->owner,
(unsigned long) rel->r_offset, howto->name,
@ -4250,6 +4264,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (relocation & 1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: unaligned %s relocation 0x%lx"),
input_section->owner,
(unsigned long) rel->r_offset, howto->name,
@ -4264,6 +4279,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|| (signed int)relocation > 32)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: R_SH_PSHA relocation %d not in range -32..32"),
input_section->owner,
(unsigned long) rel->r_offset,
@ -4278,6 +4294,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|| (signed int)relocation > 16)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: 0x%lx: fatal: R_SH_PSHL relocation %d not in range -32..32"),
input_section->owner,
(unsigned long) rel->r_offset,
@ -4422,6 +4439,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
input_section->output_section))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): cannot emit fixup to `%s' in read-only section"),
input_bfd,
input_section,
@ -4900,6 +4918,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
reloc_section->output_section))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): cannot emit fixup to `%s' in read-only section"),
input_bfd,
input_section,
@ -5007,6 +5026,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|| !SYMBOL_FUNCDESC_LOCAL (info, h)))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): %s relocation against external symbol \"%s\""),
input_bfd, input_section, (long) rel->r_offset, howto->name,
h->root.root.string);
@ -5480,12 +5500,14 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (bfd_link_pic (info))
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%X%C: relocation to \"%s\" references a different segment\n"),
input_bfd, input_section, rel->r_offset, symname);
return FALSE;
}
else
info->callbacks->einfo
/* xgettext:c-format */
(_("%C: warning: relocation to \"%s\" references a different segment\n"),
input_bfd, input_section, rel->r_offset, symname);
}
@ -6053,15 +6075,18 @@ sh_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
if ((old_got_type == GOT_FUNCDESC || got_type == GOT_FUNCDESC)
&& (old_got_type == GOT_NORMAL || got_type == GOT_NORMAL))
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and FDPIC symbol"),
abfd, h->root.root.string);
else if (old_got_type == GOT_FUNCDESC
|| got_type == GOT_FUNCDESC)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as FDPIC and thread local symbol"),
abfd, h->root.root.string);
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and thread local symbol"),
abfd, h->root.root.string);
return FALSE;
@ -6136,10 +6161,12 @@ sh_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
{
if (old_got_type == GOT_NORMAL)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and FDPIC symbol"),
abfd, h->root.root.string);
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as FDPIC and thread local symbol"),
abfd, h->root.root.string);
}
@ -6438,8 +6465,9 @@ sh_merge_bfd_arch (bfd *ibfd, struct bfd_link_info *info)
if (!SH_VALID_CO_ARCH_SET (merged_arch))
{
_bfd_error_handler
("%B: uses %s instructions while previous modules "
"use %s instructions",
/* xgettext:c-format */
(_("%B: uses %s instructions while previous modules "
"use %s instructions"),
ibfd,
SH_ARCH_SET_HAS_DSP (new_arch) ? "dsp" : "floating point",
SH_ARCH_SET_HAS_DSP (new_arch) ? "floating point" : "dsp");
@ -6449,8 +6477,9 @@ sh_merge_bfd_arch (bfd *ibfd, struct bfd_link_info *info)
else if (!SH_VALID_ARCH_SET (merged_arch))
{
_bfd_error_handler
("internal error: merge of architecture '%s' with "
"architecture '%s' produced unknown architecture",
/* xgettext:c-format */
(_("internal error: merge of architecture '%s' with "
"architecture '%s' produced unknown architecture"),
bfd_printable_name (obfd),
bfd_printable_name (ibfd));
bfd_set_error (bfd_error_bad_value);
@ -6486,8 +6515,8 @@ sh_elf_merge_private_data (bfd *ibfd, struct bfd_link_info *info)
if (! sh_merge_bfd_arch (ibfd, info))
{
_bfd_error_handler ("%B: uses instructions which are incompatible "
"with instructions used in previous modules",
_bfd_error_handler (_("%B: uses instructions which are incompatible "
"with instructions used in previous modules"),
ibfd);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -6499,7 +6528,7 @@ sh_elf_merge_private_data (bfd *ibfd, struct bfd_link_info *info)
if (fdpic_object_p (ibfd) != fdpic_object_p (obfd))
{
_bfd_error_handler ("%B: attempt to mix FDPIC and non-FDPIC objects",
_bfd_error_handler (_("%B: attempt to mix FDPIC and non-FDPIC objects"),
ibfd);
bfd_set_error (bfd_error_bad_value);
return FALSE;

View file

@ -221,11 +221,14 @@ sh64_elf_merge_private_data (bfd *ibfd, struct bfd_link_info *info)
if (bfd_get_arch_size (ibfd) == 32
&& bfd_get_arch_size (obfd) == 64)
/* xgettext:c-format */
msg = _("%s: compiled as 32-bit object and %s is 64-bit");
else if (bfd_get_arch_size (ibfd) == 64
&& bfd_get_arch_size (obfd) == 32)
/* xgettext:c-format */
msg = _("%s: compiled as 64-bit object and %s is 32-bit");
else
/* xgettext:c-format */
msg = _("%s: object size does not match that of target %s");
_bfd_error_handler (msg, bfd_get_filename (ibfd),
@ -594,6 +597,7 @@ shmedia_prepare_reloc (struct bfd_link_info *info, bfd *abfd,
if (dropped != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: error: unaligned relocation type %d at %08x reloc %p\n"),
input_section->owner, ELF32_R_TYPE (rel->r_info),
(unsigned) rel->r_offset, relocation);

View file

@ -156,6 +156,7 @@ spu_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
/* PR 17512: file: 90c2a92e. */
if (r_type >= R_SPU_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised SPU reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -790,6 +791,7 @@ spu_elf_find_overlays (struct bfd_link_info *info)
spu_elf_section_data (s)->u.o.ovl_buf = num_buf;
if (s0->vma != s->vma)
{
/* xgettext:c-format */
info->callbacks->einfo (_("%X%P: overlay sections %A "
"and %A do not start at the "
"same address.\n"),
@ -1015,6 +1017,7 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
sym_sec);
}
_bfd_error_handler
/* xgettext:c-format */
(_("warning: call to non-function symbol %s defined in %B"),
sym_sec->owner, sym_name);
@ -1364,6 +1367,7 @@ build_stub (struct bfd_link_info *info,
if (stub_type != br000_ovl_stub
&& lrlive != stub_type - br000_ovl_stub)
/* xgettext:c-format */
info->callbacks->einfo (_("%A:0x%v lrlive .brinfo (%u) differs "
"from analysis (%u)\n"),
isec, irela->r_offset, lrlive,
@ -1895,6 +1899,7 @@ define_ovtab_symbol (struct spu_link_hash_table *htab, const char *name)
}
else if (h->root.u.def.section->owner != NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B is not allowed to define %s"),
h->root.u.def.section->owner,
h->root.root.string);
@ -2557,6 +2562,7 @@ check_function_ranges (asection *sec, struct bfd_link_info *info)
const char *f1 = func_name (&sinfo->fun[i - 1]);
const char *f2 = func_name (&sinfo->fun[i]);
/* xgettext:c-format */
info->callbacks->einfo (_("warning: %s overlaps %s\n"), f1, f2);
sinfo->fun[i - 1].hi = sinfo->fun[i].lo;
}
@ -2604,6 +2610,7 @@ find_function (asection *sec, bfd_vma offset, struct bfd_link_info *info)
else
return &sinfo->fun[mid];
}
/* xgettext:c-format */
info->callbacks->einfo (_("%A:0x%v not found in function table\n"),
sec, offset);
bfd_set_error (bfd_error_bad_value);
@ -2744,6 +2751,7 @@ mark_functions_via_relocs (asection *sec,
{
if (!warned)
info->callbacks->einfo
/* xgettext:c-format */
(_("%B(%A+0x%v): call to non-code section"
" %B(%A), analysis incomplete\n"),
sec->owner, sec, irela->r_offset,
@ -3312,6 +3320,7 @@ remove_cycles (struct function_info *fun,
const char *f1 = func_name (fun);
const char *f2 = func_name (call->fun);
/* xgettext:c-format */
info->callbacks->info (_("Stack analysis will ignore the call "
"from %s to %s\n"),
f1, f2);
@ -4003,8 +4012,8 @@ sum_stack (struct function_info *fun,
if (htab->params->stack_analysis)
{
if (!fun->non_root)
info->callbacks->info (_(" %s: 0x%v\n"), f1, (bfd_vma) cum_stack);
info->callbacks->minfo (_("%s: 0x%v 0x%v\n"),
info->callbacks->info (" %s: 0x%v\n", f1, (bfd_vma) cum_stack);
info->callbacks->minfo ("%s: 0x%v 0x%v\n",
f1, (bfd_vma) stack, (bfd_vma) cum_stack);
if (has_call)
@ -4017,7 +4026,7 @@ sum_stack (struct function_info *fun,
const char *ann1 = call->fun == max ? "*" : " ";
const char *ann2 = call->is_tail ? "t" : " ";
info->callbacks->minfo (_(" %s%s %s\n"), ann1, ann2, f2);
info->callbacks->minfo (" %s%s %s\n", ann1, ann2, f2);
}
}
}
@ -4322,6 +4331,7 @@ spu_elf_auto_overlay (struct bfd_link_info *info)
if (bfd_arr[i - 1]->my_archive == bfd_arr[i]->my_archive)
{
if (bfd_arr[i - 1]->my_archive && bfd_arr[i]->my_archive)
/* xgettext:c-format */
info->callbacks->einfo (_("%s duplicated in %s\n"),
bfd_arr[i]->filename,
bfd_arr[i]->my_archive->filename);
@ -4374,6 +4384,7 @@ spu_elf_auto_overlay (struct bfd_link_info *info)
}
if (fixed_size + mos_param.max_overlay_size > htab->local_store)
/* xgettext:c-format */
info->callbacks->einfo (_("non-overlay size of 0x%v plus maximum overlay "
"size of 0x%v exceeds local store\n"),
(bfd_vma) fixed_size,
@ -4529,6 +4540,7 @@ spu_elf_auto_overlay (struct bfd_link_info *info)
if (i == base)
{
/* xgettext:c-format */
info->callbacks->einfo (_("%B:%A%s exceeds overlay size\n"),
ovly_sections[2 * i]->owner,
ovly_sections[2 * i],
@ -4670,7 +4682,7 @@ spu_elf_auto_overlay (struct bfd_link_info *info)
file_err:
bfd_set_error (bfd_error_system_call);
err_exit:
info->callbacks->einfo ("%F%P: auto overlay error: %E\n");
info->callbacks->einfo (_("%F%P: auto overlay error: %E\n"));
xexit (1);
}
@ -4721,10 +4733,10 @@ spu_elf_final_link (bfd *output_bfd, struct bfd_link_info *info)
|| (htab->params->ovly_flavour == ovly_soft_icache
&& htab->params->lrlive_analysis))
&& !spu_elf_stack_analysis (info))
info->callbacks->einfo ("%X%P: stack/lrlive analysis error: %E\n");
info->callbacks->einfo (_("%X%P: stack/lrlive analysis error: %E\n"));
if (!spu_elf_build_stubs (info))
info->callbacks->einfo ("%F%P: can not build overlay stubs: %E\n");
info->callbacks->einfo (_("%F%P: can not build overlay stubs: %E\n"));
return bfd_elf_final_link (output_bfd, info);
}
@ -5027,6 +5039,7 @@ spu_elf_relocate_section (bfd *output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%s+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
bfd_get_section_name (input_bfd, input_section),

View file

@ -2631,6 +2631,7 @@ elf32_tic6x_relocate_section (bfd *output_bfd,
allowed to pass us these kinds of things. */
if (h == NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with non-zero addend %d"
" against local symbol"),
input_bfd,
@ -2639,6 +2640,7 @@ elf32_tic6x_relocate_section (bfd *output_bfd,
rel->r_addend);
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B, section %A: relocation %s with non-zero addend %d"
" against symbol `%s'"),
input_bfd,
@ -2668,6 +2670,7 @@ elf32_tic6x_relocate_section (bfd *output_bfd,
/* Invalid in relocatable object. */
default:
/* Unknown relocation. */
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
input_bfd, r_type);
ok = FALSE;
@ -2807,6 +2810,7 @@ elf32_tic6x_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
return FALSE;
@ -3642,6 +3646,7 @@ elf32_tic6x_obj_attrs_handle_unknown (bfd *abfd, int tag)
if ((tag & 127) < 64)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: error: unknown mandatory EABI object attribute %d"),
abfd, tag);
bfd_set_error (bfd_error_bad_value);
@ -3650,6 +3655,7 @@ elf32_tic6x_obj_attrs_handle_unknown (bfd *abfd, int tag)
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: warning: unknown EABI object attribute %d"),
abfd, tag);
return TRUE;
@ -3763,6 +3769,7 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
< in_attr[Tag_ABI_stack_align_needed].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B requires more stack alignment than %B preserves"),
ibfd, obfd);
result = FALSE;
@ -3771,6 +3778,7 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
< out_attr[Tag_ABI_stack_align_needed].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B requires more stack alignment than %B preserves"),
obfd, ibfd);
result = FALSE;
@ -3816,6 +3824,7 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
if (array_align_out < array_expect_in)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B requires more array alignment than %B preserves"),
ibfd, obfd);
result = FALSE;
@ -3823,6 +3832,7 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
if (array_align_in < array_expect_out)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B requires more array alignment than %B preserves"),
obfd, ibfd);
result = FALSE;
@ -3845,6 +3855,7 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
&& out_attr[i].i != in_attr[i].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("warning: %B and %B differ in wchar_t size"), obfd, ibfd);
}
break;
@ -3863,6 +3874,7 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
if (out_attr[i].i != in_attr[i].i)
{
_bfd_error_handler
/* xgettext:c-format */
(_("warning: %B and %B differ in whether code is "
"compiled for DSBT"),
obfd, ibfd);

View file

@ -1508,6 +1508,7 @@ tilepro_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
return FALSE;
@ -1624,6 +1625,7 @@ tilepro_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and thread local symbol"),
abfd, h ? h->root.root.string : "<local>");
return FALSE;
@ -2872,6 +2874,7 @@ tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
{
/* 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);
@ -3572,6 +3575,7 @@ tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
&& _bfd_elf_section_offset (output_bfd, info, input_section,
rel->r_offset) != (bfd_vma) -1)
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,

View file

@ -1898,6 +1898,7 @@ v850_elf_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_V850_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid V850 reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1916,6 +1917,7 @@ v850_elf_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_V850_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid V850 reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -2520,6 +2522,7 @@ v850_elf_merge_notes (bfd * ibfd, bfd *obfd)
if (oval == EF_RH850_DATA_ALIGN4)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B needs 8-byte aligment but %B is set for 4-byte alignment"),
ibfd, obfd);
result = FALSE;
@ -2535,6 +2538,7 @@ v850_elf_merge_notes (bfd * ibfd, bfd *obfd)
if (oval == EF_RH850_DOUBLE32)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses 64-bit doubles but "
"%B uses 32-bit doubles"), ibfd, obfd);
result = FALSE;
@ -2549,6 +2553,7 @@ v850_elf_merge_notes (bfd * ibfd, bfd *obfd)
if (oval == EF_RH850_FPU20)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B uses FPU-3.0 but %B only supports FPU-2.0"),
ibfd, obfd);
result = FALSE;
@ -3594,8 +3599,9 @@ v850_elf_relax_section (bfd *abfd,
else
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized insns",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized insns"),
bfd_get_filename (abfd), (unsigned long) irel->r_offset);
continue;
}
@ -3603,8 +3609,9 @@ v850_elf_relax_section (bfd *abfd,
if (no_match >= 0)
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized insn 0x%x",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized insn 0x%x"),
bfd_get_filename (abfd),
(unsigned long) irel->r_offset + no_match,
insn[no_match]);
@ -3647,8 +3654,9 @@ v850_elf_relax_section (bfd *abfd,
|| irelcall == irelend)
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized reloc",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized reloc"),
bfd_get_filename (abfd), (unsigned long) irel->r_offset);
continue;
@ -3686,8 +3694,9 @@ v850_elf_relax_section (bfd *abfd,
if (symval + irelcall->r_addend != irelcall->r_offset + 4)
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized reloc 0x%lx",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGCALL points to "
"unrecognized reloc 0x%lx"),
bfd_get_filename (abfd), (unsigned long) irel->r_offset,
irelcall->r_offset);
continue;
@ -3828,8 +3837,9 @@ v850_elf_relax_section (bfd *abfd,
else
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGJUMP points to "
"unrecognized insns",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGJUMP points to "
"unrecognized insns"),
bfd_get_filename (abfd), (unsigned long) irel->r_offset);
continue;
}
@ -3837,8 +3847,9 @@ v850_elf_relax_section (bfd *abfd,
if (no_match >= 0)
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGJUMP points to "
"unrecognized insn 0x%x",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGJUMP points to "
"unrecognized insn 0x%x"),
bfd_get_filename (abfd),
(unsigned long) irel->r_offset + no_match,
insn[no_match]);
@ -3870,8 +3881,9 @@ v850_elf_relax_section (bfd *abfd,
|| lo_irelfn == irelend)
{
_bfd_error_handler
("%s: 0x%lx: warning: R_V850_LONGJUMP points to "
"unrecognized reloc",
/* xgettext:c-format */
(_("%s: 0x%lx: warning: R_V850_LONGJUMP points to "
"unrecognized reloc"),
bfd_get_filename (abfd), (unsigned long) irel->r_offset);
continue;
}

View file

@ -286,6 +286,7 @@ rtype_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst)
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_VAX_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised VAX reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -659,6 +660,7 @@ elf_vax_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
h->got.refcount++;
if (eh->got_addend != (bfd_vma) rel->r_addend)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: warning: GOT addend of %ld to `%s' does"
" not match previous GOT addend of %ld"),
bfd_get_filename (abfd), rel->r_addend,
@ -1546,6 +1548,7 @@ elf_vax_relocate_section (bfd *output_bfd,
}
else if (rel->r_addend != 0)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: warning: PLT addend of %d to `%s' from %s section ignored"),
bfd_get_filename (input_bfd), rel->r_addend,
h->root.root.string,
@ -1671,12 +1674,14 @@ elf_vax_relocate_section (bfd *output_bfd,
{
if (h != NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: warning: %s relocation against symbol `%s' from %s section"),
bfd_get_filename (input_bfd), howto->name,
h->root.root.string,
bfd_get_section_name (input_bfd, input_section));
else
_bfd_error_handler
/* xgettext:c-format */
(_("%s: warning: %s relocation to 0x%x from %s section"),
bfd_get_filename (input_bfd), howto->name,
outrel.r_addend,

View file

@ -477,6 +477,7 @@ visium_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
default:
if (r_type >= (unsigned int) R_VISIUM_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid Visium reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -812,8 +813,8 @@ visium_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
if (mismatch)
_bfd_error_handler
(_
("%s: compiled %s -mtune=%s and linked with modules"
/* xgettext:c-format */
(_("%s: compiled %s -mtune=%s and linked with modules"
" compiled %s -mtune=%s"),
bfd_get_filename (ibfd), new_opt_with, opt_arch, old_opt_with,
opt_arch);

View file

@ -424,6 +424,7 @@ xgate_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_XGATE_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid XGate reloc number: %d"), abfd, r_type);
r_type = 0;
}

View file

@ -481,6 +481,7 @@ elf_xtensa_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
if (r_type >= (unsigned int) R_XTENSA_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid XTENSA reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -912,6 +913,7 @@ xtensa_read_table_entries (bfd *abfd,
if (blocks[blk - 1].address == blocks[blk].address &&
blocks[blk - 1].size != 0)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B(%A): invalid property table"),
abfd, section);
bfd_set_error (bfd_error_bad_value);
@ -1003,6 +1005,7 @@ elf_xtensa_check_relocs (bfd *abfd,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
return FALSE;
@ -1180,6 +1183,7 @@ elf_xtensa_check_relocs (bfd *abfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and thread local symbol"),
abfd,
h ? h->root.root.string : "<local>");
@ -2778,6 +2782,7 @@ elf_xtensa_relocate_section (bfd *output_bfd,
&& ELF32_R_TYPE (rel->r_info) != R_XTENSA_NONE)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): relocation offset out of range (size=0x%x)"),
input_bfd, input_section, rel->r_offset, input_size);
bfd_set_error (bfd_error_bad_value);
@ -2803,7 +2808,9 @@ elf_xtensa_relocate_section (bfd *output_bfd,
{
_bfd_error_handler
((sym_type == STT_TLS
/* xgettext:c-format */
? _("%B(%A+0x%lx): %s used with TLS symbol %s")
/* xgettext:c-format */
: _("%B(%A+0x%lx): %s used with non-TLS symbol %s")),
input_bfd,
input_section,
@ -3059,6 +3066,7 @@ elf_xtensa_relocate_section (bfd *output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -3480,6 +3488,7 @@ elf_xtensa_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
if (out_mach != in_mach)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: incompatible machine type. Output is 0x%x. Input is 0x%x"),
ibfd, out_mach, in_mach);
bfd_set_error (bfd_error_wrong_format);
@ -6546,6 +6555,7 @@ extend_ebb_bounds_forward (ebb_t *ebb)
if (insn_block_len != (entry_end - ebb->end_offset))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): could not decode instruction; possible configuration mismatch"),
ebb->sec->owner, ebb->sec, ebb->end_offset + insn_block_len);
return FALSE;
@ -6622,6 +6632,7 @@ extend_ebb_bounds_backward (ebb_t *ebb)
if (insn_block_len != ebb->start_offset - block_begin)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): could not decode instruction; possible configuration mismatch"),
ebb->sec->owner, ebb->sec, ebb->end_offset + insn_block_len);
return FALSE;
@ -7735,6 +7746,7 @@ compute_text_actions (bfd *abfd,
if (simplify_size == 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): could not decode instruction for XTENSA_ASM_SIMPLIFY relocation; possible configuration mismatch"),
sec->owner, sec, r_offset);
continue;
@ -7993,6 +8005,7 @@ compute_ebb_proposed_actions (ebb_constraint *ebb_table)
decode_error:
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): could not decode instruction; possible configuration mismatch"),
ebb->sec->owner, ebb->sec, offset);
return FALSE;
@ -10769,6 +10782,7 @@ do_fix_for_relocatable_link (Elf_Internal_Rela *rel,
if (r_type != R_XTENSA_ASM_EXPAND)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unexpected fix for %s relocation"),
input_bfd, input_section, rel->r_offset,
elf_howto_table[r_type].name);

View file

@ -1108,6 +1108,7 @@ elf64_alpha_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
if (r_type >= R_ALPHA_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: unrecognised Alpha reloc number: %d"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
@ -2520,6 +2521,7 @@ elf64_alpha_size_got_sections (struct bfd_link_info *info,
{
/* Yikes! A single object file has too many entries. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: .got subsegment exceeds 64K (size %d)"),
i, alpha_elf_tdata (this_got)->total_got_size);
return FALSE;
@ -3072,7 +3074,8 @@ elf64_alpha_relax_got_load (struct alpha_relax_info *info, bfd_vma symval,
{
reloc_howto_type *howto = elf64_alpha_howto_table + r_type;
_bfd_error_handler
("%B: %A+0x%lx: warning: %s relocation against unexpected insn",
/* xgettext:c-format */
(_("%B: %A+0x%lx: warning: %s relocation against unexpected insn"),
info->abfd, info->sec,
(unsigned long) irel->r_offset, howto->name);
return TRUE;
@ -3265,7 +3268,8 @@ elf64_alpha_relax_with_lituse (struct alpha_relax_info *info,
if (lit_insn >> 26 != OP_LDQ)
{
_bfd_error_handler
("%B: %A+0x%lx: warning: LITERAL relocation against unexpected insn",
/* xgettext:c-format */
(_("%B: %A+0x%lx: warning: LITERAL relocation against unexpected insn"),
abfd, info->sec,
(unsigned long) irel->r_offset);
return TRUE;
@ -4151,6 +4155,7 @@ elf64_alpha_relocate_section_r (bfd *output_bfd ATTRIBUTE_UNUSED,
if (r_type >= R_ALPHA_max)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unknown relocation type %d"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
@ -4301,6 +4306,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (r_type >= R_ALPHA_max)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unknown relocation type %d"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
@ -4466,6 +4472,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: gp-relative relocation against dynamic symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4478,6 +4485,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: gp-relative relocation against dynamic symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4504,6 +4512,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: pc-relative relocation against dynamic symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4532,6 +4541,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
&& gotobj != alpha_elf_tdata (sec->owner)->gotobj)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: change in gp: BRSGP %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4562,6 +4572,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
name = bfd_section_name (input_bfd, sec);
}
_bfd_error_handler
/* xgettext:c-format */
(_("%B: !samegp reloc against symbol without .prologue: %s"),
input_bfd, name);
ret_val = FALSE;
@ -4619,6 +4630,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (r_type == R_ALPHA_REFLONG)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unhandled dynamic relocation against %s"),
input_bfd,
h->root.root.root.string);
@ -4644,6 +4656,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: pc-relative relocation against dynamic symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4652,6 +4665,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
&& undef_weak_ref)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: pc-relative relocation against undefined weak symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4717,6 +4731,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: dtp-relative relocation against dynamic symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;
@ -4733,6 +4748,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (bfd_link_dll (info))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: TLS local exec code cannot be linked into shared objects"),
input_bfd);
ret_val = FALSE;
@ -4740,6 +4756,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
else if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: tp-relative relocation against dynamic symbol %s"),
input_bfd, h->root.root.root.string);
ret_val = FALSE;

View file

@ -65,6 +65,7 @@ check_for_relocs (bfd * abfd, asection * o, void * failed)
Elf_Internal_Ehdr *ehdrp;
ehdrp = elf_elfheader (abfd);
/* xgettext:c-format */
_bfd_error_handler (_("%B: Relocations in generic ELF (EM: %d)"),
abfd, ehdrp->e_machine);

View file

@ -2078,6 +2078,7 @@ elf64_hppa_finish_dynamic_symbol (bfd *output_bfd,
if ((value & 7) || value + max_offset >= 2*max_offset - 8)
{
_bfd_error_handler
/* xgettext:c-format */
(_("stub entry for %s cannot load .plt, dp offset = %ld"),
hh->eh.root.root.string, (long) value);
return FALSE;
@ -3282,6 +3283,7 @@ elf_hppa_final_link_relocate (Elf_Internal_Rela *rel,
&& value + addend + max_branch_offset >= 2*max_branch_offset)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%" BFD_VMA_FMT "x): cannot reach %s"),
input_bfd,
input_section,

View file

@ -583,6 +583,7 @@ elf64_ia64_relax_section (bfd *abfd, asection *sec,
|| strcmp (sec->output_section->name, ".fini") == 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Can't relax br at 0x%lx in section `%A'. Please use brl or indirect branch."),
sec->owner, sec, (unsigned long) roff);
bfd_set_error (bfd_error_bad_value);
@ -3276,6 +3277,7 @@ elf64_ia64_choose_gp (bfd *abfd, struct bfd_link_info *info, bfd_boolean final)
{
overflow:
_bfd_error_handler
/* xgettext:c-format */
(_("%s: short data segment overflowed (0x%lx >= 0x400000)"),
bfd_get_filename (abfd),
(unsigned long) (max_short_vma - min_short_vma));
@ -3426,6 +3428,7 @@ elf64_ia64_relocate_section (bfd *output_bfd,
if (r_type > R_IA64_MAX_RELOC_CODE)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unknown relocation type %d"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
@ -3552,6 +3555,7 @@ elf64_ia64_relocate_section (bfd *output_bfd,
/* ??? People shouldn't be doing non-pic code in
shared libraries nor dynamic executables. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: non-pic code with imm relocation against dynamic symbol `%s'"),
input_bfd,
h ? h->root.root.string
@ -3614,6 +3618,7 @@ elf64_ia64_relocate_section (bfd *output_bfd,
if (dynamic_symbol_p)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: @gprel relocation against dynamic symbol %s"),
input_bfd,
h ? h->root.root.string
@ -3774,10 +3779,13 @@ elf64_ia64_relocate_section (bfd *output_bfd,
const char *msg;
if (r_type == R_IA64_PCREL21BI)
/* xgettext:c-format */
msg = _("%B: @internal branch to dynamic symbol %s");
else if (r_type == R_IA64_PCREL21F || r_type == R_IA64_PCREL21M)
/* xgettext:c-format */
msg = _("%B: speculation fixup to dynamic symbol %s");
else
/* xgettext:c-format */
msg = _("%B: @pcrel relocation against dynamic symbol %s");
_bfd_error_handler (msg, input_bfd,
h ? h->root.root.string
@ -3938,6 +3946,7 @@ elf64_ia64_relocate_section (bfd *output_bfd,
case R_IA64_LTOFF_DTPMOD22:
case R_IA64_LTOFF_DTPREL22:
_bfd_error_handler
/* xgettext:c-format */
(_("%B: missing TLS section for relocation %s against `%s' at 0x%lx in section `%A'."),
input_bfd, input_section, howto->name, name,
rel->r_offset);
@ -3953,6 +3962,7 @@ elf64_ia64_relocate_section (bfd *output_bfd,
Overflow failures for those relocations mean
that the section is too big to relax. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Can't relax br (%s) to `%s' at 0x%lx in section `%A' with size 0x%lx (> 0x1000000)."),
input_bfd, input_section, howto->name, name,
rel->r_offset, input_section->size);
@ -5122,12 +5132,14 @@ error_free_dyn:
/* PR binutils/2735 */
if (normal_bfd == NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: alignment %u of common symbol `%s' in %B"
" is greater than the alignment (%u) of its section %A"),
common_bfd, h->root.u.def.section,
1 << common_align, name, 1 << normal_align);
else
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: alignment %u of symbol `%s' in %B"
" is smaller than %u in %B"),
normal_bfd, common_bfd,
@ -5143,6 +5155,7 @@ error_free_dyn:
&& h->size != isym->st_size
&& ! size_change_ok)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: size of symbol `%s' changed"
" from %lu in %B to %lu in %B"),
old_bfd, abfd,
@ -5170,6 +5183,7 @@ error_free_dyn:
{
if (h->type != STT_NOTYPE && ! type_change_ok)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: type of symbol `%s' changed"
" from %d to %d in %B"),
abfd, name, h->type, type);

View file

@ -1191,6 +1191,7 @@ mmix_elf_perform_relocation (asection *isec, reloc_howto_type *howto,
if (value != gregdata->reloc_request[bpo_index].value)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: Internal inconsistency error for value for\n\
linker-allocated global register: linked: 0x%lx%08lx != relaxed: 0x%lx%08lx\n"),
bfd_get_filename (isec->owner),
@ -1261,6 +1262,7 @@ mmix_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
r_type = ELF64_R_TYPE (dst->r_info);
if (r_type >= (unsigned int) R_MMIX_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid MMIX reloc number: %d"), abfd, r_type);
r_type = 0;
}
@ -1612,11 +1614,13 @@ mmix_final_link_relocate (reloc_howto_type *howto, asection *input_section,
to ease the translation into other languages. */
if (symname == NULL || *symname == 0)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: base-plus-offset relocation against register symbol: (unknown) in %s"),
bfd_get_filename (input_section->owner),
bfd_get_section_name (symsec->owner, symsec));
else
_bfd_error_handler
/* xgettext:c-format */
(_("%s: base-plus-offset relocation against register symbol: %s in %s"),
bfd_get_filename (input_section->owner), symname,
bfd_get_section_name (symsec->owner, symsec));
@ -1661,11 +1665,13 @@ mmix_final_link_relocate (reloc_howto_type *howto, asection *input_section,
to ease the translation into other languages. */
if (symname == NULL || *symname == 0)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: register relocation against non-register symbol: (unknown) in %s"),
bfd_get_filename (input_section->owner),
bfd_get_section_name (symsec->owner, symsec));
else
_bfd_error_handler
/* xgettext:c-format */
(_("%s: register relocation against non-register symbol: %s in %s"),
bfd_get_filename (input_section->owner), symname,
bfd_get_section_name (symsec->owner, symsec));
@ -1733,6 +1739,7 @@ mmix_final_link_relocate (reloc_howto_type *howto, asection *input_section,
{
/* FIXME: Better error message. */
_bfd_error_handler
/* xgettext:c-format */
(_("%s: LOCAL directive: Register $%ld is not a local register. First global register is $%ld."),
bfd_get_filename (input_section->owner), (long) srel, (long) first_global);
@ -2190,6 +2197,7 @@ mmix_elf_add_symbol_hook (bfd *abfd,
/* How do we get the asymbol (or really: the filename) from h?
h->u.def.section->owner is NULL. */
_bfd_error_handler
/* xgettext:c-format */
(_("%s: Error: multiple definition of `%s'; start of %s "
"is set in a earlier linked file\n"),
bfd_get_filename (abfd), *namep,
@ -2434,6 +2442,7 @@ _bfd_mmix_after_linker_allocation (bfd *abfd ATTRIBUTE_UNUSED,
!= gregdata->n_bpo_relocs)
{
_bfd_error_handler
/* xgettext:c-format */
(_("Internal inconsistency: remaining %u != max %u.\n\
Please report this bug."),
gregdata->n_remaining_bpo_relocs_this_relaxation_round,

View file

@ -2490,6 +2490,7 @@ ppc64_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
type = ELF64_R_TYPE (dst->r_info);
if (type >= ARRAY_SIZE (ppc64_elf_howto_table))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, (int) type);
type = R_PPC64_NONE;
@ -4588,6 +4589,7 @@ ppc_add_stub (const char *stub_name,
TRUE, FALSE);
if (stub_entry == NULL)
{
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %B: cannot create stub entry %s\n"),
section->owner, stub_name);
return NULL;
@ -5125,6 +5127,7 @@ ppc64_elf_before_check_relocs (bfd *ibfd, struct bfd_link_info *info)
set_abiversion (ibfd, 1);
else if (abiversion (ibfd) >= 2)
{
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %B .opd not allowed in ABI"
" version %d\n"),
ibfd, abiversion (ibfd));
@ -5559,6 +5562,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
/* It does not make sense to have a procedure linkage
table entry for a non-ifunc local symbol. */
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: %s reloc against local symbol\n"),
abfd, sec, rel->r_offset,
ppc64_elf_howto_table[r_type]->name);
@ -5606,6 +5610,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
{
if (!ppc64_elf_howto_table[R_PPC64_ADDR32])
ppc_howto_init ();
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %H: %s reloc unsupported "
"in shared libraries and PIEs.\n"),
abfd, sec, rel->r_offset,
@ -6019,6 +6024,7 @@ ppc64_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
if (iflags & ~EF_PPC64_ABI)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B uses unknown e_flags 0x%lx"), ibfd, iflags);
bfd_set_error (bfd_error_bad_value);
return FALSE;
@ -6026,6 +6032,7 @@ ppc64_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
else if (iflags != oflags && iflags != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: ABI version %ld is not compatible with ABI version %ld output"),
ibfd, iflags, oflags);
bfd_set_error (bfd_error_bad_value);
@ -6050,7 +6057,6 @@ ppc64_elf_print_private_bfd_data (bfd *abfd, void *ptr)
{
FILE *file = ptr;
/* xgettext:c-format */
fprintf (file, _("private flags = 0x%lx:"),
elf_elfheader (abfd)->e_flags);
@ -7831,6 +7837,7 @@ dec_dynrel_count (bfd_vma r_info,
}
}
/* xgettext:c-format */
info->callbacks->einfo (_("%P: dynreloc miscount for %B, section %A\n"),
sec->owner, sec);
bfd_set_error (bfd_error_bad_value);
@ -7929,6 +7936,7 @@ ppc64_elf_edit_opd (struct bfd_link_info *info)
|| (r_type = ELF64_R_TYPE ((rel + 1)->r_info)) != R_PPC64_TOC)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unexpected reloc type %u in .opd section"),
ibfd, r_type);
broken = TRUE;
@ -7950,6 +7958,7 @@ ppc64_elf_edit_opd (struct bfd_link_info *info)
sym_sec);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: undefined sym `%s' in .opd section"),
ibfd, sym_name);
broken = TRUE;
@ -8709,6 +8718,7 @@ ppc64_elf_tls_optimize (struct bfd_link_info *info)
could just mark this symbol to exclude it
from tls optimization but it's safer to skip
the entire optimization. */
/* xgettext:c-format */
info->callbacks->minfo (_("%H arg lost __tls_get_addr, "
"TLS optimization disabled\n"),
ibfd, sec, rel->r_offset);
@ -9207,6 +9217,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
ppc64_elf_tdata (ibfd)->unexpected_toc_insn = 1;
sprintf (str, "%#08x", insn);
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: toc optimization is not supported for"
" %s instruction.\n"),
ibfd, sec, rel->r_offset & ~3, str);
@ -9435,6 +9446,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
if (!ppc64_elf_howto_table[R_PPC64_ADDR32])
ppc_howto_init ();
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: %s references "
"optimized away TOC entry\n"),
ibfd, sec, rel->r_offset,
@ -11124,6 +11136,7 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
if (off + 0x80008000 > 0xffffffff || (off & 7) != 0)
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: linkage table error against `%T'\n"),
stub_entry->h != NULL
? stub_entry->h->elf.root.root.string
@ -12106,6 +12119,7 @@ group_sections (struct bfd_link_info *info,
big_sec = total > group_size;
if (big_sec && !suppress_size_errors)
/* xgettext:c-format */
_bfd_error_handler (_("%B section %A exceeds stub group size"),
tail->owner, tail);
curr_toc = htab->sec_info[tail->id].toc_off;
@ -13560,7 +13574,9 @@ ppc64_elf_relocate_section (bfd *output_bfd,
else
info->callbacks->einfo
(!IS_PPC64_TLS_RELOC (r_type)
/* xgettext:c-format */
? _("%P: %H: %s used with TLS symbol `%T'\n")
/* xgettext:c-format */
: _("%P: %H: %s used with non-TLS symbol `%T'\n"),
input_bfd, input_section, rel->r_offset,
ppc64_elf_howto_table[r_type]->name,
@ -14190,11 +14206,13 @@ ppc64_elf_relocate_section (bfd *output_bfd,
if (stub_entry->stub_type == ppc_stub_plt_call
|| stub_entry->stub_type == ppc_stub_plt_call_r2save)
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: call to `%T' lacks nop, can't restore toc; "
"recompile with -fPIC\n"),
input_bfd, input_section, rel->r_offset, sym_name);
else
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: call to `%T' lacks nop, can't restore toc; "
"(-mcmodel=small toc adjust stub)\n"),
input_bfd, input_section, rel->r_offset, sym_name);
@ -14322,6 +14340,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
{
default:
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: unknown relocation type %d for `%T'\n"),
input_bfd, (int) r_type, sym_name);
@ -14864,6 +14883,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
: ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC)
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: %s for indirect "
"function `%T' unsupported\n"),
input_bfd, input_section, rel->r_offset,
@ -14971,6 +14991,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
/* These ones haven't been implemented yet. */
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %B: %s is not supported for `%T'\n"),
input_bfd,
ppc64_elf_howto_table[r_type]->name, sym_name);
@ -15125,6 +15146,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
{
relocation ^= relocation & mask;
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: error: %s not a multiple of %u\n"),
input_bfd, input_section, rel->r_offset,
howto->name,
@ -15146,6 +15168,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
rel->r_offset) != (bfd_vma) -1)
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: unresolvable %s against `%T'\n"),
input_bfd, input_section, rel->r_offset,
howto->name,
@ -15242,6 +15265,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
else
{
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: %H: %s against `%T': error %d\n"),
input_bfd, input_section, rel->r_offset,
reloc_name, sym_name, (int) r);

View file

@ -368,6 +368,7 @@ elf_s390_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
default:
if (r_type >= sizeof (elf_howto_table) / sizeof (elf_howto_table[0]))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, (int) r_type);
r_type = R_390_NONE;
@ -924,6 +925,7 @@ elf_s390_check_relocs (bfd *abfd,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
return FALSE;
@ -1165,6 +1167,7 @@ elf_s390_check_relocs (bfd *abfd,
if (old_tls_type == GOT_NORMAL || tls_type == GOT_NORMAL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: `%s' accessed both as normal and thread local symbol"),
abfd, h->root.root.string);
return FALSE;
@ -2295,6 +2298,7 @@ invalid_tls_insn (bfd *input_bfd,
howto = elf_howto_table + ELF64_R_TYPE (rel->r_info);
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): invalid instruction for TLS relocation %s"),
input_bfd,
input_section,
@ -3309,6 +3313,7 @@ elf_s390_relocate_section (bfd *output_bfd,
&& _bfd_elf_section_offset (output_bfd, info, input_section,
rel->r_offset) != (bfd_vma) -1)
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -3365,6 +3370,7 @@ elf_s390_relocate_section (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): reloc against `%s': error %d"),
input_bfd, input_section,
(long) rel->r_offset, name, (int) r);

View file

@ -1540,6 +1540,7 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (howto->rightshift || howto->src_mask != 0xffffffff)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): %s relocation against SEC_MERGE section"),
input_bfd, input_section,
(long) rel->r_offset, howto->name);
@ -1636,6 +1637,7 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
!= (bfd_vma) -1))
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -1679,6 +1681,7 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (dropped != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: error: unaligned relocation type %d at %08x reloc %08x\n"),
bfd_get_filename (input_bfd), (int)r_type, (unsigned)rel->r_offset, (unsigned)relocation);
bfd_set_error (bfd_error_bad_value);
@ -2289,11 +2292,14 @@ sh_elf64_merge_private_data (bfd *ibfd, struct bfd_link_info *info)
if (bfd_get_arch_size (ibfd) == 32
&& bfd_get_arch_size (obfd) == 64)
/* xgettext:c-format */
msg = _("%s: compiled as 32-bit object and %s is 64-bit");
else if (bfd_get_arch_size (ibfd) == 64
&& bfd_get_arch_size (obfd) == 32)
/* xgettext:c-format */
msg = _("%s: compiled as 64-bit object and %s is 32-bit");
else
/* xgettext:c-format */
msg = _("%s: object size does not match that of target %s");
_bfd_error_handler (msg, bfd_get_filename (ibfd),

View file

@ -463,6 +463,7 @@ elf64_sparc_add_symbol_hook (bfd *abfd, struct bfd_link_info *info,
if (p->name != NULL && strcmp (p->name, *namep))
{
_bfd_error_handler
/* xgettext:c-format */
(_("Register %%g%d used incompatibly: %s in %B, previously %s in %B"),
abfd, p->abfd, (int) sym->st_value,
**namep ? *namep : "#scratch",
@ -486,6 +487,7 @@ elf64_sparc_add_symbol_hook (bfd *abfd, struct bfd_link_info *info,
if (type > STT_FUNC)
type = 0;
_bfd_error_handler
/* xgettext:c-format */
(_("Symbol `%s' has differing types: REGISTER in %B, previously %s in %B"),
abfd, p->abfd, *namep, stt_types[type]);
return FALSE;
@ -531,6 +533,7 @@ elf64_sparc_add_symbol_hook (bfd *abfd, struct bfd_link_info *info,
if (type > STT_FUNC)
type = 0;
_bfd_error_handler
/* xgettext:c-format */
(_("Symbol `%s' has differing types: %s in %B, previously REGISTER in %B"),
abfd, p->abfd, *namep, stt_types[type]);
return FALSE;
@ -704,6 +707,7 @@ elf64_sparc_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
error = TRUE;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: uses different e_flags (0x%lx) fields than previous modules (0x%lx)"),
ibfd, (long) new_flags, (long) old_flags);
}

View file

@ -285,6 +285,7 @@ elf_x86_64_rtype_to_howto (bfd *abfd, unsigned r_type)
{
if (r_type >= (unsigned int) R_X86_64_standard)
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: invalid relocation type %d"),
abfd, (int) r_type);
r_type = R_X86_64_NONE;
@ -1654,6 +1655,7 @@ elf_x86_64_tls_transition (struct bfd_link_info *info, bfd *abfd,
}
_bfd_error_handler
/* xgettext:c-format */
(_("%B: TLS transition from %s to %s against `%s' at 0x%lx "
"in section `%A' failed"),
abfd, sec, from->name, to->name, name,
@ -1712,6 +1714,7 @@ elf_x86_64_need_pic (bfd *input_bfd, asection *sec,
pic = _("; recompile with -fPIC");
}
/* xgettext:c-format */
_bfd_error_handler (_("%B: relocation %s against %s%s`%s' can "
"not be used when making a shared object%s"),
input_bfd, howto->name, und, v, name, pic);
@ -2207,6 +2210,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"),
abfd, r_symndx);
goto error_return;
@ -2270,6 +2274,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against symbol `%s' isn't "
"supported in x32 mode"), abfd,
x86_64_elf_howto_table[r_type].name, name);
@ -2459,6 +2464,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
name = bfd_elf_sym_name (abfd, symtab_hdr,
isym, NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: '%s' accessed both as normal and thread local symbol"),
abfd, name);
bfd_set_error (bfd_error_bad_value);
@ -3458,6 +3464,7 @@ elf_x86_64_readonly_dynrelocs (struct elf_link_hash_entry *h,
if ((info->warn_shared_textrel && bfd_link_pic (info))
|| info->error_textrel)
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %B: warning: relocation against `%s' in readonly section `%A'\n"),
p->sec->owner, h->root.root.string,
p->sec);
@ -3666,6 +3673,7 @@ elf_x86_64_size_dynamic_sections (bfd *output_bfd,
info->flags |= DF_TEXTREL;
if ((info->warn_shared_textrel && bfd_link_pic (info))
|| info->error_textrel)
/* xgettext:c-format */
info->callbacks->einfo (_("%P: %B: warning: relocation in readonly section `%A'\n"),
p->sec->owner, p->sec);
}
@ -4150,6 +4158,7 @@ elf_x86_64_relocate_section (bfd *output_bfd,
if (r_type >= (int) R_X86_64_standard)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unrecognized relocation (0x%x) in section `%A'"),
input_bfd, input_section, r_type);
bfd_set_error (bfd_error_bad_value);
@ -4377,6 +4386,7 @@ bad_ifunc_reloc:
name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym,
NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against STT_GNU_IFUNC "
"symbol `%s' isn't supported"), input_bfd,
howto->name, name);
@ -4402,6 +4412,7 @@ do_ifunc_pointer:
name = bfd_elf_sym_name (input_bfd, symtab_hdr,
sym, NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against STT_GNU_IFUNC "
"symbol `%s' has non-zero addend: %d"),
input_bfd, howto->name, name, rel->r_addend);
@ -4637,6 +4648,7 @@ do_ifunc_pointer:
}
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation R_X86_64_GOTOFF64 against undefined %s `%s' can not be used when making a shared object"),
input_bfd, v, h->root.root.string);
bfd_set_error (bfd_error_bad_value);
@ -4649,6 +4661,7 @@ do_ifunc_pointer:
&& ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation R_X86_64_GOTOFF64 against protected %s `%s' can not be used when making a shared object"),
input_bfd,
h->type == STT_FUNC ? "function" : "data",
@ -4916,6 +4929,7 @@ direct:
sym, NULL);
if (addend < 0)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: addend -0x%x in relocation %s against "
"symbol `%s' at 0x%lx in section `%A' is "
"out of range"),
@ -4924,6 +4938,7 @@ direct:
(unsigned long) rel->r_offset);
else
_bfd_error_handler
/* xgettext:c-format */
(_("%B: addend 0x%x in relocation %s against "
"symbol `%s' at 0x%lx in section `%A' is "
"out of range"),
@ -5547,6 +5562,7 @@ direct:
rel->r_offset) != (bfd_vma) -1)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd,
input_section,
@ -5586,6 +5602,7 @@ check_relocation_error:
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B(%A+0x%lx): reloc against `%s': error %d"),
input_bfd, input_section,
(long) rel->r_offset, name, (int) r);
@ -5778,6 +5795,7 @@ elf_x86_64_finish_dynamic_symbol (bfd *output_bfd,
/* Check PC-relative offset overflow in PLT entry. */
if ((plt_got_pcrel_offset + 0x80000000) > 0xffffffff)
/* xgettext:c-format */
info->callbacks->einfo (_("%F%B: PC-relative offset overflow in PLT entry for `%s'\n"),
output_bfd, h->root.root.string);
@ -5836,6 +5854,7 @@ elf_x86_64_finish_dynamic_symbol (bfd *output_bfd,
check relocation index for overflow since branch displacement
will overflow first. */
if (plt0_offset > 0x80000000)
/* xgettext:c-format */
info->callbacks->einfo (_("%F%B: branch displacement overflow in PLT entry for `%s'\n"),
output_bfd, h->root.root.string);
bfd_put_32 (output_bfd, - plt0_offset,
@ -5900,6 +5919,7 @@ elf_x86_64_finish_dynamic_symbol (bfd *output_bfd,
got_after_plt = got->output_section->vma > plt->output_section->vma;
if ((got_after_plt && got_pcrel_offset < 0)
|| (!got_after_plt && got_pcrel_offset > 0))
/* xgettext:c-format */
info->callbacks->einfo (_("%F%B: PC-relative offset overflow in GOT PLT entry for `%s'\n"),
output_bfd, h->root.root.string);

View file

@ -1186,6 +1186,7 @@ elf_slurp_symbol_table (bfd *abfd, asymbol **symptrs, bfd_boolean dynamic)
&& verhdr->sh_size / sizeof (Elf_External_Versym) != symcount)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s: version count (%ld) does not match symbol count (%ld)"),
abfd->filename,
(long) (verhdr->sh_size / sizeof (Elf_External_Versym)),
@ -1440,6 +1441,7 @@ elf_slurp_reloc_table_from_section (bfd *abfd,
else if (ELF_R_SYM (rela.r_info) > symcount)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%s(%s): relocation %d has invalid symbol index %ld"),
abfd->filename, asect->name, i, ELF_R_SYM (rela.r_info));
relent->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;

View file

@ -296,6 +296,7 @@ elf_core_file_p (bfd *abfd)
if ((bfd_size_type) statbuf.st_size < high)
{
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: %B is truncated: expected core file "
"size >= %lu, found: %lu."),
abfd, (unsigned long) high, (unsigned long) statbuf.st_size);

View file

@ -1260,21 +1260,25 @@ _bfd_elf_merge_symbol (bfd *abfd,
if (tdef && ntdef)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: TLS definition in %B section %A "
"mismatches non-TLS definition in %B section %A"),
tbfd, tsec, ntbfd, ntsec, h->root.root.string);
else if (!tdef && !ntdef)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: TLS reference in %B "
"mismatches non-TLS reference in %B"),
tbfd, ntbfd, h->root.root.string);
else if (tdef)
_bfd_error_handler
/* xgettext:c-format */
(_("%s: TLS definition in %B section %A "
"mismatches non-TLS reference in %B"),
tbfd, tsec, ntbfd, h->root.root.string);
else
_bfd_error_handler
/* xgettext:c-format */
(_("%s: TLS reference in %B "
"mismatches non-TLS definition in %B section %A"),
tbfd, ntbfd, ntsec, h->root.root.string);
@ -1938,6 +1942,7 @@ nondefault:
if (hi->root.type != bfd_link_hash_defined
&& hi->root.type != bfd_link_hash_defweak)
_bfd_error_handler
/* xgettext:c-format */
(_("%B: unexpected redefinition of indirect versioned symbol `%s'"),
abfd, shortname);
}
@ -2230,6 +2235,7 @@ _bfd_elf_link_assign_sym_version (struct elf_link_hash_entry *h, void *data)
/* We could not find the version for a symbol when
generating a shared archive. Return an error. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: version node not found for symbol %s"),
info->output_bfd, h->root.root.string);
bfd_set_error (bfd_error_bad_value);
@ -2318,6 +2324,7 @@ elf_link_read_relocs_from_section (bfd *abfd,
if ((size_t) r_symndx >= nsyms)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: bad reloc symbol index (0x%lx >= 0x%lx)"
" for offset 0x%lx in section `%A'"),
abfd, sec,
@ -2329,6 +2336,7 @@ elf_link_read_relocs_from_section (bfd *abfd,
else if (r_symndx != STN_UNDEF)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: non-zero symbol index (0x%lx) for offset 0x%lx in section `%A'"
" when the object file has no symbol table"),
abfd, sec,
@ -2519,6 +2527,7 @@ _bfd_elf_link_output_relocs (bfd *output_bfd,
else
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation size mismatch in %B section %A"),
output_bfd, input_section->owner, input_section);
bfd_set_error (bfd_error_wrong_format);
@ -3666,6 +3675,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
|| (bed->elf_machine_alt2 != 0
&& ehdr->e_machine == bed->elf_machine_alt2)))
info->callbacks->einfo
/* xgettext:c-format */
(_("%P: alternate ELF machine code found (%d) in %B, expecting %d\n"),
ehdr->e_machine, abfd, bed->elf_machine_code);
@ -4309,6 +4319,7 @@ error_free_dyn:
if (verstr == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: %s: invalid version %u (max %d)"),
abfd, name, vernum,
elf_tdata (abfd)->cverdefs);
@ -4345,6 +4356,7 @@ error_free_dyn:
if (verstr == NULL)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: %s: invalid needed version %d"),
abfd, name, vernum);
bfd_set_error (bfd_error_bad_value);
@ -4599,12 +4611,14 @@ error_free_dyn:
/* PR binutils/2735 */
if (normal_bfd == NULL)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: alignment %u of common symbol `%s' in %B is"
" greater than the alignment (%u) of its section %A"),
common_bfd, h->root.u.def.section,
1 << common_align, name, 1 << normal_align);
else
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: alignment %u of symbol `%s' in %B"
" is smaller than %u in %B"),
normal_bfd, common_bfd,
@ -4621,6 +4635,7 @@ error_free_dyn:
&& h->size != isym->st_size
&& ! size_change_ok)
_bfd_error_handler
/* xgettext:c-format */
(_("Warning: size of symbol `%s' changed"
" from %lu in %B to %lu in %B"),
old_bfd, abfd,
@ -4655,6 +4670,7 @@ error_free_dyn:
if (h->type != type)
{
if (h->type != STT_NOTYPE && ! type_change_ok)
/* xgettext:c-format */
_bfd_error_handler
(_("Warning: type of symbol `%s' changed"
" from %d to %d in %B"),
@ -4757,6 +4773,7 @@ error_free_dyn:
&& (elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: undefined reference to symbol '%s'"),
old_bfd, name);
bfd_set_error (bfd_error_missing_dso);
@ -5760,9 +5777,11 @@ bfd_elf_stack_segment_size (bfd *output_bfd,
/* The symbol has no type if specified on the command line. */
h->type = STT_OBJECT;
if (info->stacksize)
/* xgettext:c-format */
_bfd_error_handler (_("%B: stack size specified and %s set"),
output_bfd, legacy_symbol);
else if (h->root.u.def.section != bfd_abs_section_ptr)
/* xgettext:c-format */
_bfd_error_handler (_("%B: %s not absolute"),
output_bfd, legacy_symbol);
else
@ -7894,6 +7913,7 @@ resolve_section (const char *name,
static void
undefined_reference (const char *reftype, const char *name)
{
/* xgettext:c-format */
_bfd_error_handler (_("undefined %s reference in complex symbol: %s"),
reftype, name);
}
@ -9022,6 +9042,7 @@ check_dynsym (bfd *abfd, Elf_Internal_Sym *sym)
/* The gABI doesn't support dynamic symbols in output sections
beyond 64k. */
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Too many sections: %d (>= %d)"),
abfd, bfd_count_sections (abfd), SHN_LORESERVE & 0xffff);
bfd_set_error (bfd_error_nonrepresentable_section);
@ -9311,10 +9332,13 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data)
hi = (struct elf_link_hash_entry *) hi->root.u.i.link;
if (ELF_ST_VISIBILITY (h->other) == STV_INTERNAL)
/* xgettext:c-format */
msg = _("%B: internal symbol `%s' in %B is referenced by DSO");
else if (ELF_ST_VISIBILITY (h->other) == STV_HIDDEN)
/* xgettext:c-format */
msg = _("%B: hidden symbol `%s' in %B is referenced by DSO");
else
/* xgettext:c-format */
msg = _("%B: local symbol `%s' in %B is referenced by DSO");
def_bfd = flinfo->output_bfd;
if (hi->root.u.def.section != bfd_abs_section_ptr)
@ -9400,6 +9424,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data)
if (sym.st_shndx == SHN_BAD)
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: could not find output section %A for input section %A"),
flinfo->output_bfd, input_sec->output_section, input_sec);
bfd_set_error (bfd_error_nonrepresentable_section);
@ -9553,10 +9578,13 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data)
const char *msg;
if (ELF_ST_VISIBILITY (sym.st_other) == STV_PROTECTED)
/* xgettext:c-format */
msg = _("%B: protected symbol `%s' isn't defined");
else if (ELF_ST_VISIBILITY (sym.st_other) == STV_INTERNAL)
/* xgettext:c-format */
msg = _("%B: internal symbol `%s' isn't defined");
else
/* xgettext:c-format */
msg = _("%B: hidden symbol `%s' isn't defined");
_bfd_error_handler (msg, flinfo->output_bfd, h->root.root.string);
bfd_set_error (bfd_error_bad_value);
@ -9589,6 +9617,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data)
if (p && p [1] != '\0')
{
_bfd_error_handler
/* xgettext:c-format */
(_("%B: No symbol version section for versioned symbol `%s'"),
flinfo->output_bfd, h->root.root.string);
eoinfo->failed = TRUE;
@ -10193,6 +10222,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd)
if (o->size != o->reloc_count * address_size)
{
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B: size of section %A is not "
"multiple of address size"),
input_bfd, o);
@ -10240,6 +10270,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd)
sprintf_vma (buffer, rel->r_info);
_bfd_error_handler
/* xgettext:c-format */
(_("error: %B contains a reloc (0x%s) for section %A "
"that references a non-existent global symbol"),
input_bfd, o, buffer);
@ -10324,6 +10355,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd)
BFD_ASSERT (r_symndx != STN_UNDEF);
if (action_discarded & COMPLAIN)
(*flinfo->info->callbacks->einfo)
/* xgettext:c-format */
(_("%X`%s' referenced in section `%A' of %B: "
"defined in discarded section `%A' of %B\n"),
sym_name, o, input_bfd, sec, sec->owner);
@ -10912,6 +10944,7 @@ elf_get_linked_section_vma (struct bfd_link_order *p)
= get_elf_backend_data (s->owner);
if (bed->link_order_error_handler)
bed->link_order_error_handler
/* xgettext:c-format */
(_("%B: warning: sh_link not set for section `%A'"), s->owner, s);
return 0;
}
@ -10992,6 +11025,7 @@ elf_fixup_link_order (bfd *abfd, asection *o)
{
if (other_sec && linkorder_sec)
_bfd_error_handler
/* xgettext:c-format */
(_("%A has both ordered [`%A' in %B] "
"and unordered [`%A' in %B] sections"),
o, linkorder_sec,
@ -11723,6 +11757,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
bfd_set_error (bfd_error_wrong_format);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: file class %s incompatible with %s"),
sub, iclass, oclass);
}
@ -12842,6 +12877,7 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info)
o->flags |= SEC_EXCLUDE;
if (info->print_gc_sections && o->size != 0)
/* xgettext:c-format */
_bfd_error_handler (_("Removing unused section '%s' in file '%B'"), sub, o->name);
/* But we also have to update some of the relocation
@ -13196,7 +13232,8 @@ bfd_elf_gc_record_vtinherit (bfd *abfd,
goto win;
}
_bfd_error_handler ("%B: %A+%lu: No symbol found for INHERIT",
/* xgettext:c-format */
_bfd_error_handler (_("%B: %A+%lu: No symbol found for INHERIT"),
abfd, sec, (unsigned long) offset);
bfd_set_error (bfd_error_invalid_operation);
return FALSE;

View file

@ -2833,6 +2833,7 @@ _bfd_aarch64_add_stub_entry_in_group (const char *stub_name,
TRUE, FALSE);
if (stub_entry == NULL)
{
/* xgettext:c-format */
_bfd_error_handler (_("%s: cannot create stub entry %s"),
section->owner, stub_name);
return NULL;
@ -4970,6 +4971,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym,
NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against STT_GNU_IFUNC "
"symbol `%s' isn't handled by %s"), input_bfd,
howto->name, name, __FUNCTION__);
@ -4985,6 +4987,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
name = bfd_elf_sym_name (input_bfd, symtab_hdr,
sym, NULL);
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against STT_GNU_IFUNC "
"symbol `%s' has non-zero addend: %d"),
input_bfd, howto->name, name, rel->r_addend);
@ -5305,6 +5308,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
int howto_index = bfd_r_type - BFD_RELOC_AARCH64_RELOC_START;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against external symbol `%s' can not be used"
" when making a shared object; recompile with -fPIC"),
input_bfd, elfNN_aarch64_howto_table[howto_index].name,
@ -5372,6 +5376,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
{
int howto_index = bfd_r_type - BFD_RELOC_AARCH64_RELOC_START;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Local symbol descriptor table be NULL when applying "
"relocation %s against local symbol"),
input_bfd, elfNN_aarch64_howto_table[howto_index].name);
@ -5440,6 +5445,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
{
int howto_index = bfd_r_type - BFD_RELOC_AARCH64_RELOC_START;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: Local symbol descriptor table be NULL when applying "
"relocation %s against local symbol"),
input_bfd, elfNN_aarch64_howto_table[howto_index].name);
@ -6041,6 +6047,7 @@ elfNN_aarch64_relocate_section (bfd *output_bfd,
if (howto == NULL)
{
/* xgettext:c-format */
_bfd_error_handler
(_("%B: unrecognized relocation (0x%x) in section `%A'"),
input_bfd, input_section, r_type);
@ -6124,7 +6131,9 @@ elfNN_aarch64_relocate_section (bfd *output_bfd,
{
_bfd_error_handler
((sym_type == STT_TLS
/* xgettext:c-format */
? _("%B(%A+0x%lx): %s used with TLS symbol %s")
/* xgettext:c-format */
: _("%B(%A+0x%lx): %s used with non-TLS symbol %s")),
input_bfd,
input_section, (long) rel->r_offset, howto->name, name);
@ -6394,8 +6403,8 @@ elfNN_aarch64_relocate_section (bfd *output_bfd,
+rel->r_offset) != (bfd_vma) - 1)
{
_bfd_error_handler
(_
("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
/* xgettext:c-format */
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
input_bfd, input_section, (long) rel->r_offset, howto->name,
h->root.root.string);
return FALSE;
@ -7020,6 +7029,7 @@ elfNN_aarch64_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
{
/* xgettext:c-format */
_bfd_error_handler (_("%B: bad symbol index: %d"), abfd, r_symndx);
return FALSE;
}
@ -7318,6 +7328,7 @@ elfNN_aarch64_check_relocs (bfd *abfd, struct bfd_link_info *info,
{
int howto_index = bfd_r_type - BFD_RELOC_AARCH64_RELOC_START;
_bfd_error_handler
/* xgettext:c-format */
(_("%B: relocation %s against `%s' can not be used when making "
"a shared object; recompile with -fPIC"),
abfd, elfNN_aarch64_howto_table[howto_index].name,

Some files were not shown because too many files have changed in this diff Show more