summaryrefslogtreecommitdiff
path: root/lang/gcc15/files/patch-libgcc_enable-execute-stack-mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc15/files/patch-libgcc_enable-execute-stack-mprotect.c')
-rw-r--r--lang/gcc15/files/patch-libgcc_enable-execute-stack-mprotect.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/gcc15/files/patch-libgcc_enable-execute-stack-mprotect.c b/lang/gcc15/files/patch-libgcc_enable-execute-stack-mprotect.c
new file mode 100644
index 000000000000..4645f084fef0
--- /dev/null
+++ b/lang/gcc15/files/patch-libgcc_enable-execute-stack-mprotect.c
@@ -0,0 +1,15 @@
+--- libgcc/enable-execute-stack-mprotect.c.orig 2024-11-23 12:39:04 UTC
++++ libgcc/enable-execute-stack-mprotect.c
+@@ -30,10 +30,11 @@ static int need_enable_exec_stack;
+
+ static int need_enable_exec_stack;
+
+-static void check_enabling (void) __attribute__ ((unused));
+ extern void __enable_execute_stack (void *);
+
+ #if defined __sun__ && defined __svr4__
++static void check_enabling (void) __attribute__ ((unused));
++
+ static void __attribute__ ((constructor))
+ check_enabling (void)
+ {