Permalink
Browse files

Use W^X on OpenBSD.

  • Loading branch information...
bentley committed Nov 6, 2017
1 parent 0b68130 commit 9fc355eee445aa5e553eae17cd105a304265288c
Showing with 2 additions and 2 deletions.
  1. +2 −2 Common/MemoryUtil.cpp
View
@@ -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.

0 comments on commit 9fc355e

Please sign in to comment.