#885: GHC doesn't work with Data Execution Prevention on Windows
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: _|_
Component: Compiler | Version: 6.4.2
Severity: major | Resolution:
Keywords: | Os: Windows
Difficulty: Unknown | Architecture: x86
-----------------------+----------------------------------------------------
Comment (by simonmar):
Ah, that's interesting. Yes the RTS does have a way to allocate
executable memory, but it appears that the Win32 object linker isn't using
it: line 1379 of rts/Linker.c:
{{{
oc->image = stgMallocBytes(oc->fileSize + misalignment,
"loadObj(image)");
}}}
Could you try changing this to
{{{
oc->image = allocateExec(oc->fileSize + misalignment);
}}}
and see if that helps?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/885>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs