Re:Apple Silicon M1 Emulating x86 Is Still Faster Than Every...
by cormacrelf on Monday November 16, 2020 @05:26AM
(#25110141)
Ah, the question is whether Darwin enforces W^X, because if so, the problem becomes very easy. Then you re-translate whenever a page becomes executable [again].
Wouldn't executable pages (translated or not) normally be mapped as read-only, ensuring the processor faults on any attempt to modify them?