3 ms·
You can't do the thing you are suggesting because that would require being able to take those instructions that are being "passed through" and run them, which w
by saurik 8y ago
You can't do the thing you are suggesting because that would require being able to take those instructions that are being "passed through" and run them, which would require marking them executable. What you would effectively end up having to do is write an emulator for ARM, at which point you haven't gained anything. Choosing x86 was a really sane choice given how many existing tools and packages are available for x86 (though ARM is, of course, becoming more popular and accessible).
- krackers 8y ago>because that would require being able to take those instructions that are being "passed through" and run them Isn't this just a matter of writing it to some page and then setting the RX bit?
- saagarjha 8y ago> Isn't this just a matter of writing it to some page and then setting the RX bit? Yes, but this is not easy to do on iOS: you need certain entitlements to perform this operation.
- saurik 8y agoThe ability to mark a page executable would defeat Apple's codesign feature, so a normal developer definitely can't do that.
- outadoc 8y agoIt's basically the easiest way of treating data as instructions, sort of like executing a compiled program as you would with an interpreted language?