4 ms·
Can't you use `mprotect` to allow you to write to memory and execute? https://github.com/Frodox/execute-machine-code-from-memory/tree/master https://github.com
by silasb 3y ago
Can't you use `mprotect` to allow you to write to memory and execute?
https://github.com/Frodox/execute-machine-code-from-memory/tree/master https://github.com/Frodox/execute-machine-code-from-memory/t... has several examples of how to do it.
EDIT: https://www.kvakil.me/posts/2022-10-13-optimizing-mprotect-in-luajit-with-pkeys.html https://www.kvakil.me/posts/2022-10-13-optimizing-mprotect-i... is another good link that explains this.