From fbe37ff872992be703c492763b31aea74ae79b7c Mon Sep 17 00:00:00 2001 From: monkuous <84319635+monkuous@users.noreply.github.com> Date: Sat, 15 Nov 2025 23:21:31 +0100 Subject: [PATCH] libffi: fix assumption that malloc memory is executable --- patches/libffi/jinx-working-patch.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/libffi/jinx-working-patch.patch diff --git a/patches/libffi/jinx-working-patch.patch b/patches/libffi/jinx-working-patch.patch new file mode 100644 index 00000000..e5607993 --- /dev/null +++ b/patches/libffi/jinx-working-patch.patch @@ -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