3 ms·
W^X (with permission flipping) is fine for JIT, the problem is that Apple doesn’t really allow these kinds of JITs on the App Store.
by saagarjha 4y ago
W^X (with permission flipping) is fine for JIT, the problem is that Apple doesn’t really allow these kinds of JITs on the App Store.
- fomine3 4y agoIt seems that pthread_jit_write_protect_np isn't public on iOS so perhaps JIT can't be implemented regardless of AppStore
- saagarjha 4y agoThe implementation of that is not actually very difficult to do yourself (though I wouldn’t recommend it). The problem is you can’t actually flip the mask to execute unless you have permission to JIT which Apple currently doesn’t provide to third party apps.