Use W^X on OpenBSD.

This commit is contained in:
Anthony J. Bentley 2017-11-05 17:06:09 -07:00
parent 0b68130968
commit 9fc355eee4

@ -284,9 +284,9 @@ void FreeAlignedMemory(void* ptr) {
}
bool PlatformIsWXExclusive() {
// Only iOS really needs this mode currently. Even without block linking, still should be much faster than IR JIT.
// Needed on platforms that disable W^X pages for security. Even without block linking, still should be much faster than IR JIT.
// This might also come in useful for UWP (Universal Windows Platform) if I'm understanding things correctly.
#if defined(IOS) || PPSSPP_PLATFORM(UWP)
#if defined(IOS) || PPSSPP_PLATFORM(UWP) || defined(__OpenBSD__)
return true;
#else
// Returning true here lets you test the W^X path on Windows and other non-W^X platforms.