4 ms·
hence "to ever be executable", they don't need to be writable and executable, as long as at one point they are writable (for you to dump your code in), then at
by blibble 16y ago
hence "to ever be executable", they don't need to be writable and executable, as long as at one point they are writable (for you to dump your code in), then at some point they're executable (writable or otherwise).
as for dlopen(), you could just compile that directly into your app rather than using it from libc/libdl, bypassing that limitation entirely.
- darren_ 16y agoOn non-jailbroken iOS you can't mark a section of memory as executable once it has been writable (and vice-versa, apparently). Executable pages are also checked against a signature by the kernel before they're used.
- blibble 16y agothat's pretty incredible, I'm genuinely surprised. I suppose it's possible when you start from scratch, there's no way they could do that on the Mac.