]> git.ipfire.org Git - thirdparty/rng-tools.git/commitdiff
rdrand_asm.S: Mark stack non-executable
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 1 Aug 2012 21:31:34 +0000 (14:31 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 2 Aug 2012 04:18:08 +0000 (00:18 -0400)
There is no reason for the stack to be executable.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
rdrand_asm.S

index c5567d8ea587d4708b3c013e58721d00ed9b39a6..55098e86588fbc6c3a9f7add143bf00cb5c66427 100644 (file)
@@ -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