From b8579105d14f739d13e2c443a2c4b884785825b7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 1 Aug 2012 14:31:34 -0700 Subject: rdrand_asm.S: Mark stack non-executable There is no reason for the stack to be executable. Signed-off-by: H. Peter Anvin Signed-off-by: Jeff Garzik --- rdrand_asm.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rdrand_asm.S b/rdrand_asm.S index c5567d8..55098e8 100644 --- a/rdrand_asm.S +++ b/rdrand_asm.S @@ -193,3 +193,9 @@ aes_fwd_state: .size aes_fwd_state, .-aes_fwd_state #endif /* i386 or x86_64 */ + +/* + * This is necessary to keep the whole executable + * from needing a writable stack. + */ + .section .note.GNU-stack,"",%progbits -- cgit v1.2.3