summaryrefslogtreecommitdiffstats
path: root/jmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'jmp.S')
-rw-r--r--jmp.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/jmp.S b/jmp.S
index b1449a93..d589a165 100644
--- a/jmp.S
+++ b/jmp.S
@@ -55,6 +55,12 @@ NAME: ;
NAME: ;
#endif
+#if __arm__
+#define SIGIL() %
+#else
+#define SIGIL() @
+#endif
+
#if __i386__
#define JEIP 0
@@ -238,3 +244,9 @@ DEFUN(jmp_restore)
#else
#error port me!
#endif
+
+#ifndef __APPLE__
+/* This is needed so our assembly code doesn't cause
+ the program to require an executable stack! */
+.section .note.GNU-stack,"",SIGIL()progbits
+#endif