|
From: | John Cowan |
Subject: | [bug #60267] Possible method of resolving the Apple M-1 W^X issue |
Date: | Sun, 21 Mar 2021 23:03:29 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 |
URL: <https://savannah.gnu.org/bugs/?60267> Summary: Possible method of resolving the Apple M-1 W^X issue Project: MIT/GNU Scheme Submitted by: johnwcowan Submitted on: Mon 22 Mar 2021 03:03:27 AM UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Keywords: _______________________________________________________ Details: Apple has posted a method <https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon> for supporting JITs on Apple M-1 machines. Basically one must allocate a segment with mmap using the MAP_JIT option. Then the function pthread_jit_write_protect_np must be called with a boolean argument: false turns off write-protection and enables execution, and true turns turns on write-protection and disables execution. I hope this is helpful. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60267> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |