aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index f148b3f7..240d0d16 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -665,4 +665,14 @@ extern void *LJ_WIN_LOADLIBA(const char *path);
665#define LUAJIT_SECURITY_MCODE 1 665#define LUAJIT_SECURITY_MCODE 1
666#endif 666#endif
667 667
668#define LJ_SECURITY_MODE \
669 ( 0u \
670 | ((LUAJIT_SECURITY_PRNG & 3) << 0) \
671 | ((LUAJIT_SECURITY_STRHASH & 3) << 2) \
672 | ((LUAJIT_SECURITY_STRID & 3) << 4) \
673 | ((LUAJIT_SECURITY_MCODE & 3) << 6) \
674 )
675#define LJ_SECURITY_MODESTRING \
676 "\004prng\007strhash\005strid\005mcode"
677
668#endif 678#endif