summaryrefslogtreecommitdiff
path: root/crypto/x86_64cpuid.pl
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2010-05-05 15:50:13 +0000
committerBen Laurie <ben@openssl.org>2010-05-05 15:50:13 +0000
commit0e3ef596e55654a7782ae7ce302f8933b4817f12 (patch)
tree67ebb99ff32f1fa7302fc07a70405d3d7d3640a5 /crypto/x86_64cpuid.pl
parentf472ec8c2f354314d278e11be567b43630acf090 (diff)
downloadopenssl-new-0e3ef596e55654a7782ae7ce302f8933b4817f12.tar.gz
Non-executable stack in asm.
Diffstat (limited to 'crypto/x86_64cpuid.pl')
-rw-r--r--crypto/x86_64cpuid.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/x86_64cpuid.pl b/crypto/x86_64cpuid.pl
index c96821a3c8..72010c9cbe 100644
--- a/crypto/x86_64cpuid.pl
+++ b/crypto/x86_64cpuid.pl
@@ -16,6 +16,13 @@ print<<___;
.section .init
call OPENSSL_cpuid_setup
+___
+
+if ($flavour =~ /elf/) {
+ print ".section .note.GNU-stack,\"\",\@progbits\n"
+}
+
+print<<___;
.text
.globl OPENSSL_atomic_add