Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


It seems that pthread_jit_write_protect_np isn't public on iOS so perhaps JIT can't be implemented regardless of AppStore


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: