diff options
Diffstat (limited to 'rts/linker/MachO.c')
-rw-r--r-- | rts/linker/MachO.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/linker/MachO.c b/rts/linker/MachO.c index 79d14a2d55..ab00c8e06f 100644 --- a/rts/linker/MachO.c +++ b/rts/linker/MachO.c @@ -1218,7 +1218,7 @@ ocGetNames_MachO(ObjectCode* oc) unsigned nstubs = numberOfStubsForSection(oc, sec_idx); unsigned stub_space = STUB_SIZE * nstubs; - void * mem = mmapForLinker(section->size+stub_space, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); + void * mem = mmapForLinker(section->size+stub_space, MEM_READ_WRITE, MAP_ANON, -1, 0); if( mem == MAP_FAILED ) { sysErrorBelch("failed to mmap allocated memory to load section %d. " |