aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-aarch64.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-07-07 10:25:41 +0100
committerNick Clifton <nickc@redhat.com>2021-07-07 10:25:41 +0100
commitffa5352c0c0f735541e69fe6d9a192d82e7d418c (patch)
treedf3fd83903f3eb8ae28975107352d5f657583729 /bfd/elfnn-aarch64.c
parent1f00b55dba8ed2c6bec4d263b00d41b0e91edb35 (diff)
downloadgdb-ffa5352c0c0f735541e69fe6d9a192d82e7d418c.zip
gdb-ffa5352c0c0f735541e69fe6d9a192d82e7d418c.tar.gz
gdb-ffa5352c0c0f735541e69fe6d9a192d82e7d418c.tar.bz2
Fix problems translating messages when a percentage sign appears at the end of a string.
PR 28051 gas * config/tc-i386.c (offset_in_range): Reformat error messages in order to fix problems when translating. (md_assemble): Likewise. * messages.c (as_internal_value_out_of_range): Likewise. * read.c (emit_expr_with_reloc): Likewise. * testsuite/gas/all/overflow.l Change expected output format. * po/gas.pot: Regenerate. bfd * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in order to fix problems when translating. * cofflink.c (_bfd_coff_write_global_sym): Likewise. * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub): Likewise. * po/bfd.pot: Regenerate.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r--bfd/elfnn-aarch64.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index b6f083e..4885f41 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -5345,12 +5345,15 @@ _bfd_aarch64_erratum_843419_branch_to_stub (struct bfd_hash_entry *gen_entry,
}
else
{
+ char imm_buf[128];
+
+ sprintf (imm_buf, "%" BFD_VMA_FMT "x", imm);
abfd = stub_entry->target_section->owner;
_bfd_error_handler
- (_("%pB: error: erratum 843419 immediate 0x%" BFD_VMA_FMT "x "
+ (_("%pB: error: erratum 843419 immediate 0x%s "
"out of range for ADR (input file too large) and "
"--fix-cortex-a53-843419=adr used. Run the linker with "
- "--fix-cortex-a53-843419=full instead"), abfd, imm);
+ "--fix-cortex-a53-843419=full instead"), abfd, imm_buf);
bfd_set_error (bfd_error_bad_value);
/* This function is called inside a hashtable traversal and the error
handlers called above turn into non-fatal errors. Which means this