libffcall
[Top][All Lists]
Advanced

[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/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]