From: H. Peter Anvin Date: Wed, 1 Aug 2012 21:31:34 +0000 (-0700) Subject: rdrand_asm.S: Mark stack non-executable X-Git-Tag: v4~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8579105d14f739d13e2c443a2c4b884785825b7;p=thirdparty%2Frng-tools.git 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 --- 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