From 2a6c9bd2fdda0eb807c17148e3e5372f9506469b Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Fri, 13 Jan 2006 21:40:51 +0000 Subject: [PATCH] tell the linker that we want NX stack if possible --- code/unix/qasm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/unix/qasm.h b/code/unix/qasm.h index 25a0ed96..9d030d6a 100644 --- a/code/unix/qasm.h +++ b/code/unix/qasm.h @@ -28,6 +28,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #undef ELF #endif +#ifdef __ELF__ +.section .note.GNU-stack,"",@progbits +#endif + #ifdef ELF #define C(label) label #else