From 0e3ef596e55654a7782ae7ce302f8933b4817f12 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Wed, 5 May 2010 15:50:13 +0000 Subject: Non-executable stack in asm. --- crypto/x86_64cpuid.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crypto/x86_64cpuid.pl') 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 -- cgit v1.2.3