From a28bddcbdf842148887a55bb0fec45ed8bb28482 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Sun, 7 Jun 2020 13:41:39 +0100 Subject: [PATCH] Stop linker from making stack executable Add .note.GNU-stack section to end of AstroBWT ASM. Signed-off-by: Matt Smith --- src/crypto/astrobwt/sha3_256_avx2.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/astrobwt/sha3_256_avx2.S b/src/crypto/astrobwt/sha3_256_avx2.S index 16dba72f1..f1d4e3eea 100644 --- a/src/crypto/astrobwt/sha3_256_avx2.S +++ b/src/crypto/astrobwt/sha3_256_avx2.S @@ -51,3 +51,7 @@ KeccakF1600_AVX2_ASM: lea r10,[rip+rndc] #include "sha3_256_keccakf1600_avx2.inc" + +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif