Add non-executing stack when compiling AES asm for GNU/ELF.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 25 May 2008 09:24:41 +0000 (12:24 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 25 May 2008 09:24:41 +0000 (12:24 +0300)
Patch by Kp <kp@valhallalegends.com>

Signed-off-by: Pekka Riikonen <priikone@silcnet.org>
lib/silccrypt/aes_x86.asm

index cb426a12e8cab2abb512606d33b7ded928512cae..2742c1cd68e7357a8c7f3358ce82708653339e7c 100644 (file)
@@ -595,3 +595,7 @@ stk_spc equ    20   ; stack space
 %endif
 
     end
+
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif