aboutsummaryrefslogtreecommitdiff
path: root/lib/alloca86-bt.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloca86-bt.S')
-rw-r--r--lib/alloca86-bt.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/alloca86-bt.S b/lib/alloca86-bt.S
index 76a85a0..ffad515 100644
--- a/lib/alloca86-bt.S
+++ b/lib/alloca86-bt.S
@@ -40,4 +40,8 @@ p6:
push %edx
ret
+/* mark stack as nonexecutable */
+#if defined __ELF__ && defined __linux__
+ .section .note.GNU-stack,"",@progbits
+#endif
/* ---------------------------------------------- */