|
From: | Lorenzo Daneo |
Subject: | Re: [bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time |
Date: | Wed, 14 Aug 2024 20:41:05 +0200 |
Follow-up Comment #4, bug #66089 (group libffcall):
Lorenzo Daneo wrote in
https://lists.gnu.org/archive/html/libffcall/2024-08/msg00007.html:
> I just tried to recompile with HAVE_MMAP_SHARED_CAN_EXEC = 1
> and HAVE_MPROTECT_AFTER_MMAP_CAN_EXEC = 0
Yes, that's what one needs to look at.
> *page =
(char*)mmap(NULL,pagesize,PROT_READ|PROT_WRITE,MAP_SHARED,file_fd,file_length);*
> *page_x =
(char*)mmap(NULL,pagesize,PROT_READ|PROT_EXEC,MAP_SHARED,file_fd,file_length);*
>
> The second mmap is not working.
What is the value of errno after the assignment to page_x ?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66089>
{savane: Include the next line when replying by email.}
{savane: user = 362990; tracker = bugs; item = 66089}
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |