From 77b29b5685db2f8745d191af1599ed753bef91e7 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 24 Jan 2011 18:36:18 +0000 Subject: [PATCH] Fix validate on OS X 64 --- rts/Linker.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rts/Linker.c b/rts/Linker.c index fd5c158..70aae3b 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -40,6 +40,7 @@ #include #endif +#include #include #include #include @@ -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) -- 1.7.10.4