aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-21 13:31:51 +0930
committerAlan Modra <amodra@gmail.com>2022-07-21 13:35:51 +0930
commit590207aa6ece509eabbc7a51aab87e5d9bcfc869 (patch)
tree34a76a27ca58fa83b1679f89c400d40936968b94
parent0679db296682575b4d34fc8686fbbeb305b283e9 (diff)
downloadgdb-590207aa6ece509eabbc7a51aab87e5d9bcfc869.zip
gdb-590207aa6ece509eabbc7a51aab87e5d9bcfc869.tar.gz
gdb-590207aa6ece509eabbc7a51aab87e5d9bcfc869.tar.bz2
PowerPC64: fix build error on 32-bit hosts
elf64-ppc.c:11673:33: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘bfd_vma’ {aka ‘long long unsigned int’} [-Werror=format=] 11673 | fprintf (stderr, "offset = %#lx:", stub_entry->stub_offset); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | | bfd_vma {aka long long unsigned int} | long unsigned int | %#llx * elf64-ppc.c (dump_stub): Use BFD_VMA_FMT.
-rw-r--r--bfd/elf64-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 77e8f59..570b356 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11670,7 +11670,7 @@ dump_stub (const char *header,
fprintf (stderr, "%s id = %u type = %s:%s:%s\n",
header, stub_entry->id, t1, t2, t3);
fprintf (stderr, "name = %s\n", stub_entry->root.string);
- fprintf (stderr, "offset = %#lx:", stub_entry->stub_offset);
+ fprintf (stderr, "offset = 0x%" BFD_VMA_FMT "x:", stub_entry->stub_offset);
for (size_t i = stub_entry->stub_offset; i < end_offset; i += 4)
{
asection *stub_sec = stub_entry->group->stub_sec;