Don't use BFD_VMA_FMT in binutils
authorAlan Modra <amodra@gmail.com>
Thu, 4 Aug 2022 02:52:39 +0000 (12:22 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Aug 2022 02:52:39 +0000 (12:22 +0930)
commitb82817674f46e4f08a5910719499ddc72399473f
tree079452a4c6a71ffe6493a8a818007700dad6c7e5
parent6b9bd54c24dcf08e400e5b79a958e051ccfde30d
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.
20 files changed:
bfd/archive.c
bfd/coff64-rs6000.c
bfd/coffcode.h
bfd/elf.c
bfd/elf32-rx.c
bfd/elf64-ppc.c
bfd/elfcode.h
bfd/elfnn-aarch64.c
binutils/bucomm.c
binutils/coffdump.c
binutils/od-xcoff.c
binutils/readelf.c
binutils/size.c
gas/config/tc-arc.c
gas/config/tc-i386.c
gas/config/tc-riscv.c
gas/macro.c
gprof/corefile.c
ld/ldlang.c
opcodes/s12z-dis.c