$OpenBSD: patch-src_3rdparty_javascriptcore_JavaScriptCore_wtf_Platform_h,v 1.2 2020/03/13 16:53:52 rsadowski Exp $
Enable W^X in JIT.
Index: src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
--- src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h.orig
+++ src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -1089,7 +1089,7 @@ on MinGW. See https://bugs.webkit.org/show_bug.cgi?id=
 #endif
 /* Setting this flag prevents the assembler from using RWX memory; this may improve
    security but currectly comes at a significant performance cost. */
-#if PLATFORM(IPHONE)
+#if PLATFORM(IPHONE) || OS(OPENBSD)
 #define ENABLE_ASSEMBLER_WX_EXCLUSIVE 1
 #else
 #define ENABLE_ASSEMBLER_WX_EXCLUSIVE 0
