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:
parent
daf10ec882
commit
b264657d56
15 changed files with 126 additions and 32 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue