From 402c7c27b02ce7c62e1d108f4316a8faadb5f806 Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Wed, 26 Oct 2016 01:44:09 +0800 Subject: icp: mark asm files with noexec stack Similar to commit a3600a106. Asm files need an explicit note that they do not require an executable stack. Reviewed-by: Brian Behlendorf Signed-off-by: Jason Zaman Closes #5332 --- module/icp/asm-x86_64/sha2/sha512_impl.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module/icp/asm-x86_64') diff --git a/module/icp/asm-x86_64/sha2/sha512_impl.S b/module/icp/asm-x86_64/sha2/sha512_impl.S index 24a41745b..248d8b2cc 100644 --- a/module/icp/asm-x86_64/sha2/sha512_impl.S +++ b/module/icp/asm-x86_64/sha2/sha512_impl.S @@ -2081,3 +2081,7 @@ K512: .quad 0x4cc5d4becb3e42b6,0x597f299cfc657e2a .quad 0x5fcb6fab3ad6faec,0x6c44198c4a475817 #endif /* !lint && !__lint */ + +#ifdef __ELF__ +.section .note.GNU-stack,"",%progbits +#endif -- cgit v1.2.3