Implement W^X-compatible path. Works on Windows and Android, hopefully iOS (untested).

Disabled block linking in this mode, can re-enable with some more work later.

To enable W^X on other platforms than iOS, simply change PlatformIsWXExclusive.
This commit is contained in:
Henrik Rydgard 2016-08-28 14:52:08 +02:00
parent daf10ec882
commit b264657d56
15 changed files with 126 additions and 32 deletions

View file

@ -143,7 +143,7 @@ static const JitLookup jitLookup[] = {
JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec, int32_t *jittedSize) {
dec_ = &dec;
BeginWrite();
const u8 *start = AlignCode16();
bool prescaleStep = false;
@ -300,7 +300,7 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec, int
}
*jittedSize = GetCodePtr() - start;
EndWrite();
return (JittedVertexDecoder)start;
}