summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-24 18:36:18 +0000
committerIan Lynagh <igloo@earth.li>2011-01-24 18:36:18 +0000
commit77b29b5685db2f8745d191af1599ed753bef91e7 (patch)
tree752303be8e0c50573a62ee730988cb597c7e840b
parenta79a531965cd1f0d04dd3e0250b076037bf9ff4e (diff)
downloadhaskell-77b29b5685db2f8745d191af1599ed753bef91e7.tar.gz
Fix validate on OS X 64
-rw-r--r--rts/Linker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index fd5c158cce..70aae3b0f9 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -40,6 +40,7 @@
#include <sys/types.h>
#endif
+#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -4652,8 +4653,8 @@ static int relocateSection(
}
IF_DEBUG(linker,
- debugBelch("relocateSection: length = %d, thing = %d, baseValue = %p\n",
- reloc->r_length, thing, baseValue));
+ debugBelch("relocateSection: length = %d, thing = %" PRId64 ", baseValue = %p\n",
+ reloc->r_length, thing, (char *)baseValue));
if (type == X86_64_RELOC_GOT
|| type == X86_64_RELOC_GOT_LOAD)