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;
}
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);
{
/* 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;
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,
{
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]);
&& (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
#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
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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. */
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;
}
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;
}
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;
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;
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
{
/* Begin of the region. */
if (begin_rel)
+ /* xgettext:c-format */
_bfd_error_handler (_("%B: Nested OMIT_FP in %A."), abfd, sec);
begin_rel = irel;
if (begin_rel == NULL)
{
+ /* xgettext:c-format */
_bfd_error_handler (_("%B: Unmatched OMIT_FP in %A."), abfd, sec);
continue;
}
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;
{
/* 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,