Non-executable stack in asm.
[openssl.git] / crypto / x86_64cpuid.pl
index c96821a3c811d55567f43caebce6f47a8308c790..72010c9cbe020c018ce1795158210184ca3f6e36 100644 (file)
@@ -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