projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c8d2b
)
fixing obvious typo in darwin_HOST_OS code (currently does not compile).
author
andy@galois.com
<unknown>
Wed, 13 Dec 2006 16:06:01 +0000
(16:06 +0000)
committer
andy@galois.com
<unknown>
Wed, 13 Dec 2006 16:06:01 +0000
(16:06 +0000)
rts/Linker.c
patch
|
blob
|
history
diff --git
a/rts/Linker.c
b/rts/Linker.c
index
bd0b543
..
b1bfd7d
100644
(file)
--- a/
rts/Linker.c
+++ b/
rts/Linker.c
@@
-1286,7
+1286,7
@@
loadObj( char *path )
// reading the file, and then we misalign oc->image on purpose so
// that the actual sections end up aligned again.
oc->misalignment = machoGetMisalignment(f);
- oc->image = stgMallocBytes(oc->fileSize + misalignment, "loadObj(image)");
+ oc->image = stgMallocBytes(oc->fileSize + oc->misalignment, "loadObj(image)");
# else
oc->image = stgMallocBytes(oc->fileSize, "loadObj(image)");
# endif