Add PaX work-around

This commit is contained in:
Anthony Green
2012-10-30 14:06:09 -04:00
parent 9ccd51be1f
commit e944b8c7eb
15 changed files with 24400 additions and 0 deletions

View File

@@ -352,6 +352,13 @@ if test x$TARGET = xX86_WIN64; then
fi
fi
# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
AC_ARG_ENABLE(pax_emutramp,
[ --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC],
if test "$enable_pax_emutramp" = "yes"; then
AC_DEFINE(FFI_MMAP_EXEC_EMUTRAMP_PAX, 1,
[Define this if you want to enable pax emulated trampolines])
fi)
FFI_EXEC_TRAMPOLINE_TABLE=0
case "$target" in