[Git][ghc/ghc][wip/angerman/out-of-range-reloc] Fixup MachO mmapForLinker call.

Moritz Angermann gitlab at gitlab.haskell.org
Mon Jun 15 03:50:58 UTC 2020



Moritz Angermann pushed to branch wip/angerman/out-of-range-reloc at Glasgow Haskell Compiler / GHC


Commits:
a777a0e2 by Moritz Angermann at 2020-06-15T11:50:40+08:00
Fixup MachO mmapForLinker call.

- - - - -


1 changed file:

- rts/linker/MachO.c


Changes:

=====================================
rts/linker/MachO.c
=====================================
@@ -1114,7 +1114,7 @@ ocBuildSegments_MachO(ObjectCode *oc)
         return 1;
     }
 
-    mem = mmapForLinker(size_compound, MAP_ANON, -1, 0);
+    mem = mmapForLinker(size_compound, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0);
     if (NULL == mem) return 0;
 
     IF_DEBUG(linker, debugBelch("ocBuildSegments: allocating %d segments\n", n_activeSegments));



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a777a0e242a69c1d07721ebe891ca42975b050e5

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a777a0e242a69c1d07721ebe891ca42975b050e5
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200614/a97d501c/attachment.html>


More information about the ghc-commits mailing list