[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the
From: |
Bruno Haible |
Subject: |
[bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time |
Date: |
Wed, 14 Aug 2024 14:09:50 -0400 (EDT) |
Follow-up Comment #3, bug #66089 (group libffcall):
Lorenzo Daneo wrote in
https://lists.gnu.org/archive/html/libffcall/2024-08/msg00003.html :
> the installation with brew was going in error at line 87 in trampoline.c
On macOS, HAVE_MMAP_SHARED_CAN_EXEC is supposed to be defined to 1.
Can you please look in the config.log what happened to the "checking whether a
shared mmap can make memory pages executable..." test? This test ought to
succeed.
> compiled locally with HAVE_MPROTECT_AFTER_MMAP_CAN_EXEC set to 1
This won't work. The reason HAVE_MMAP_SHARED_CAN_EXEC was introduced is that,
precisely, mprotect (PROT_READ|PROT_WRITE|PROT_EXEC) does not work on macOS
and some other operating systems.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66089>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time, Lorenzo Daneo, 2024/08/14
- [bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time,
Bruno Haible <=
- [bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time, Bruno Haible, 2024/08/14
- [bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time, Bruno Haible, 2024/08/15
- [bug #66089] On macos 14, mmap with PROT_READ | PROT_EXEC fails, Bruno Haible, 2024/08/17
- [bug #66089] On macos 14, mmap with PROT_READ | PROT_EXEC fails, Bruno Haible, 2024/08/17
- [bug #66089] On macos 14, mmap with PROT_READ | PROT_EXEC fails, Bruno Haible, 2024/08/26