summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-11-26 15:22:32 +0100
committerAndreas Klebinger <klebinger.andreas@gmx.at>2020-12-17 11:01:47 -0500
commitb7281ab69c2e9f3624c4463e367499733b422b28 (patch)
treebadd495c6cb495c83677d6a1c43b8e4e449cdc64
parentfc84dbb124c5bfb4835dee6580be93303b660741 (diff)
downloadhaskell-wip/andreask/fix_rts_warnings.tar.gz
Rts/elf-linker: Upcast to 64bit to satisfy format string.wip/andreask/fix_rts_warnings
The elf size is 32bit on 32bit builds and 64 otherwise. We just upcast to 64bits before printing now.
-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. */