summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-01-28 21:32:16 +0000
committerIan Lynagh <igloo@earth.li>2007-01-28 21:32:16 +0000
commite576ba5d31fbae54c43e88316fb0dbdba9cbd4ff (patch)
tree1fab7a9497bcf028d725b3c8977d4e51c0362a29 /rts
parent911b42b27ad5f039465d14052460e2d9dde053ab (diff)
downloadhaskell-e576ba5d31fbae54c43e88316fb0dbdba9cbd4ff.tar.gz
Fix GHCi on PowerPC OS X
David Kirkman and Peter Tanski noticed that a line had been removed during a patch merge which meant that oc->image pointed to the wrong place and ultimately caused an error from realloc.
Diffstat (limited to 'rts')
-rw-r--r--rts/Linker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index d0c120b917..789093d850 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -1324,6 +1324,7 @@ loadObj( char *path )
// that the actual sections end up aligned again.
oc->misalignment = machoGetMisalignment(f);
oc->image = stgMallocBytes(oc->fileSize + oc->misalignment, "loadObj(image)");
+ oc->image += misalignment;
# else
oc->image = stgMallocBytes(oc->fileSize, "loadObj(image)");
# endif