aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff64-rs6000.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-04 12:22:39 +0930
committerAlan Modra <amodra@gmail.com>2022-08-04 12:22:39 +0930
commitb82817674f46e4f08a5910719499ddc72399473f (patch)
tree079452a4c6a71ffe6493a8a818007700dad6c7e5 /bfd/coff64-rs6000.c
parent6b9bd54c24dcf08e400e5b79a958e051ccfde30d (diff)
downloadgdb-b82817674f46e4f08a5910719499ddc72399473f.zip
gdb-b82817674f46e4f08a5910719499ddc72399473f.tar.gz
gdb-b82817674f46e4f08a5910719499ddc72399473f.tar.bz2
Don't use BFD_VMA_FMT in binutils
BFD_VMA_FMT can't be used in format strings that need to be translated, because the translation won't work when the type of bfd_vma differs from the machine used to compile .pot files. We've known about this for a long time, but patches slip through review. So just get rid of BFD_VMA_FMT, instead using the appropriate PRId64, PRIu64, PRIx64 or PRIo64 and SCN variants for scanf. The patch is mostly mechanical, the only thing requiring any thought is casts needed to preserve PRId64 output from bfd_vma values, or to preserve one of the unsigned output formats from bfd_signed_vma values.
Diffstat (limited to 'bfd/coff64-rs6000.c')
-rw-r--r--bfd/coff64-rs6000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index ce1c518..c5dc95c 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -1595,7 +1595,7 @@ xcoff64_ppc_relocate_section (bfd *output_bfd,
default:
_bfd_error_handler
- (_("%pB: relocation (%d) at (0x%" BFD_VMA_FMT "x) has wrong"
+ (_("%pB: relocation (%d) at (0x%" PRIx64 ") has wrong"
" r_rsize (0x%x)\n"),
input_bfd, rel->r_type, rel->r_vaddr, rel->r_size);
return false;