summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2015-12-27 01:13:39 +0100
committerBen Gamari <ben@smart-cactus.org>2015-12-27 01:43:08 +0100
commit909bbdb59700b7d5c8aa6a3f9b4797003d9e62bd (patch)
tree86986abb97b3abc1416d41e369416c17f3b1f1d0 /rts
parente8672e5e6cd4db6bbe3a1183f4fbf5496292621c (diff)
downloadhaskell-909bbdb59700b7d5c8aa6a3f9b4797003d9e62bd.tar.gz
Linker(ELF): Fix addProddableBlocks usage
The range marked as proddable didn't actually match the range that we mapped. This fixed `ghc-api/T8628` et al on ARM. Test Plan: Validate Reviewers: austin, erikd Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1700 GHC Trac Issues: #11289
Diffstat (limited to 'rts')
-rw-r--r--rts/Linker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index e411e4def2..3bd12b3ede 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -4809,7 +4809,7 @@ ocGetNames_ELF ( ObjectCode* oc )
if (start == NULL) goto fail;
alloc = SECTION_MMAP;
}
- addProddableBlock(oc, ehdrC + offset, size);
+ addProddableBlock(oc, start, size);
}
addSection(&sections[i], kind, alloc, start, size,