Hi Karel,

On Sat, Aug 13, 2016 at 06:56:39PM +0200, Karel Gardas wrote:
> > $ ./inplace/bin/ghc-stage2 --interactive
> > GHCi, version 8.1.20160812: http://www.haskell.org/ghc/  :? for help
> > Prelude> 1+1
> > 2
> > Prelude> :q
> > Leaving GHCi.
> > $
> >
> > I'll try to propagate those fixes to GHC HEAD...
> 
> FYI: The fixes are here:
> 
> https://phabricator.haskell.org/D2453
> https://phabricator.haskell.org/D2454

The wxneeded "fix" is really just a workaround. Right now I'm building
and then testing a ghc-7.10.3 that

- doas *not* link with -z wxneeded,

- uses mmap with PROT_READ | PROT_WRITE in rts/Linker.c

- uses mprotect with PROT_READ | PROT_EXEC right after loading and
  resolving an object in Linker.c (i.e., just plain W^X)

Results should be available tomorrow.

> if you do have any objections feel free to comment on phabricator...

If the testing goes well, I'll add a comment there.

Ciao,
        Kili

Reply via email to