VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Aes_x86.asm
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-12 23:23:54 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-12 23:26:22 (GMT)
commitba1fbb688edf7db0edf3ea9d24a95d5a5ef2260c (patch)
tree437b12ad243189a0c9f6db7c77edba5052499751 /src/Crypto/Aes_x86.asm
parent95bf8f85745bedeb09b82c187eb668d632f53424 (diff)
downloadVeraCrypt-ba1fbb688edf7db0edf3ea9d24a95d5a5ef2260c.zip
VeraCrypt-ba1fbb688edf7db0edf3ea9d24a95d5a5ef2260c.tar.gz
Linux: fix executable stack in resulting binary which was caused by crypto assembly files missing the GNU-stack note.
Diffstat (limited to 'src/Crypto/Aes_x86.asm')
-rw-r--r--src/Crypto/Aes_x86.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Crypto/Aes_x86.asm b/src/Crypto/Aes_x86.asm
index 484e31a..c45f790 100644
--- a/src/Crypto/Aes_x86.asm
+++ b/src/Crypto/Aes_x86.asm
@@ -644,3 +644,14 @@ stk_spc equ 20 ; stack space
do_exit
%endif
+
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
+%ifidn __OUTPUT_FORMAT__,elf32
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
+%ifidn __OUTPUT_FORMAT__,elf64
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
+