summaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 8a953ea8b76..8a3529b1da3 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1487,6 +1487,19 @@ __clear_cache (char *beg __attribute__((__unused__)),
#endif /* L_clear_cache */
+#ifdef L_enable_execute_stack
+/* Attempt to turn on execute permission for the stack. */
+
+#ifdef ENABLE_EXECUTE_STACK
+ ENABLE_EXECUTE_STACK
+#else
+void
+__enable_execute_stack (void *addr __attribute__((__unused__)))
+{}
+#endif /* ENABLE_EXECUTE_STACK */
+
+#endif /* L_enable_execute_stack */
+
#ifdef L_trampoline
/* Jump to a trampoline, loading the static chain address. */