aboutsummaryrefslogtreecommitdiff
path: root/lib/alloca86_64.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloca86_64.S')
-rw-r--r--lib/alloca86_64.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/alloca86_64.S b/lib/alloca86_64.S
index 44f66c8..dd46ce6 100644
--- a/lib/alloca86_64.S
+++ b/lib/alloca86_64.S
@@ -35,4 +35,8 @@ p3:
push %rdx
ret
+/* mark stack as nonexecutable */
+#if defined __ELF__ && defined __linux__
+ .section .note.GNU-stack,"",@progbits
+#endif
/* ---------------------------------------------- */