Commit 909bbdb5 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

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:

GHC Trac Issues: #11289
parent e8672e5e
...@@ -4809,7 +4809,7 @@ ocGetNames_ELF ( ObjectCode* oc ) ...@@ -4809,7 +4809,7 @@ ocGetNames_ELF ( ObjectCode* oc )
if (start == NULL) goto fail; if (start == NULL) goto fail;
} }
addProddableBlock(oc, ehdrC + offset, size); addProddableBlock(oc, start, size);
} }
addSection(&sections[i], kind, alloc, start, size, addSection(&sections[i], kind, alloc, start, size,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment