To properly support NetBSD, especially if it's a library (where NOT_PAX_MPROTECT is unsuitable, not that NOT_PAX_MPROTECT is suitable for security anyway... it should be avoided), most JITs need to be specially modified. Check out: lang/mozjs78/patches/patch-js_src_jit_ProcessExecutableMemory.cpp