libffi: fix assumption that malloc memory is executable

This commit is contained in:
monkuous
2025-11-15 23:21:31 +01:00
parent 16cba60c48
commit fbe37ff872
+13
View File
@@ -0,0 +1,13 @@
diff -urN --no-dereference libffi-clean/src/closures.c libffi-workdir/src/closures.c
--- libffi-clean/src/closures.c
+++ libffi-workdir/src/closures.c
@@ -139,6 +139,9 @@
executable memory. */
# define FFI_MMAP_EXEC_WRIT 1
# endif
+# if defined(__astral__)
+# define FFI_MMAP_EXEC_WRIT 1
+# endif
#endif
#if FFI_MMAP_EXEC_WRIT && !defined FFI_MMAP_EXEC_SELINUX