From ba1fbb688edf7db0edf3ea9d24a95d5a5ef2260c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 13 Jun 2017 01:23:54 +0200 Subject: Linux: fix executable stack in resulting binary which was caused by crypto assembly files missing the GNU-stack note. --- src/Crypto/Aes_hw_cpu.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Crypto/Aes_hw_cpu.asm') diff --git a/src/Crypto/Aes_hw_cpu.asm b/src/Crypto/Aes_hw_cpu.asm index edc20b29..4822e6a4 100644 --- a/src/Crypto/Aes_hw_cpu.asm +++ b/src/Crypto/Aes_hw_cpu.asm @@ -331,3 +331,14 @@ %endif ; __BITS__ != 16 + +%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 + -- cgit v1.2.3