summaryrefslogtreecommitdiff
path: root/rts/linker
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-11-26 15:22:32 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-12-18 05:51:10 -0500
commited22678a7060a95f82804072b0e67ae4d09bf023 (patch)
treee3d41049070982cc544d2f434b751f30cedf118a /rts/linker
parent09edf5e5f7f19109c51bb4d8ba7fb6a40b149d58 (diff)
downloadhaskell-ed22678a7060a95f82804072b0e67ae4d09bf023.tar.gz
Rts/elf-linker: Upcast to 64bit to satisfy format string.
The elf size is 32bit on 32bit builds and 64 otherwise. We just upcast to 64bits before printing now.
Diffstat (limited to 'rts/linker')
-rw-r--r--rts/linker/Elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/linker/Elf.c b/rts/linker/Elf.c
index a9c8a2fd8a..cc8d2c3309 100644
--- a/rts/linker/Elf.c
+++ b/rts/linker/Elf.c
@@ -921,8 +921,8 @@ ocGetNames_ELF ( ObjectCode* oc )
CHECK(common_used <= common_size);
IF_DEBUG(linker,
- debugBelch("COMMON symbol, size %ld name %s allocated at %p\n",
- symbol->elf_sym->st_size, nm, symbol->addr));
+ debugBelch("COMMON symbol, size %llu name %s allocated at %p\n",
+ (long long unsigned int) symbol->elf_sym->st_size, nm, symbol->addr));
/* Pointless to do addProddableBlock() for this area,
since the linker should never poke around in it. */