From 3efe51a4071d864400888e91b66c34ac3e17e01d Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 5 May 2010 22:05:39 +0000 Subject: [PATCH] Revert previous Linux-specific/centric commit#19629. If it really has to be done, it's definitely not the way to do it. So far answer to the question was to ./config -Wa,--noexecstack (adopted by RedHat). --- CHANGES | 3 --- crypto/aes/asm/aes-x86_64.pl | 3 +-- crypto/bn/asm/x86_64-mont.pl | 1 - crypto/md5/asm/md5-x86_64.pl | 1 - crypto/rc4/asm/rc4-x86_64.pl | 1 - crypto/sha/asm/sha1-x86_64.pl | 1 - crypto/sha/asm/sha512-x86_64.pl | 2 -- crypto/x86_64cpuid.pl | 7 ------- 8 files changed, 1 insertion(+), 18 deletions(-) diff --git a/CHANGES b/CHANGES index c9f2226600..6f713d9e87 100644 --- a/CHANGES +++ b/CHANGES @@ -4,9 +4,6 @@ Changes between 1.0.0 and 1.1.0 [xx XXX xxxx] - *) Make generated asm have non-executable stack. - [Contributed by Google ] - *) New function OPENSSL_gmtime_diff to find the difference in days and seconds between two tm structures. This will be used to provide additional functionality for ASN1_TIME. diff --git a/crypto/aes/asm/aes-x86_64.pl b/crypto/aes/asm/aes-x86_64.pl index a757b47146..a545e892ae 100755 --- a/crypto/aes/asm/aes-x86_64.pl +++ b/crypto/aes/asm/aes-x86_64.pl @@ -42,8 +42,7 @@ $verticalspin=1; # unlike 32-bit version $verticalspin performs # ~15% better on both AMD and Intel cores $speed_limit=512; # see aes-586.pl for details -$code=".section .note.GNU-stack,\"\",\@progbits\n"; -$code.=".text\n"; +$code=".text\n"; $s0="%eax"; $s1="%ebx"; diff --git a/crypto/bn/asm/x86_64-mont.pl b/crypto/bn/asm/x86_64-mont.pl index b62373f567..3b7a6f243f 100755 --- a/crypto/bn/asm/x86_64-mont.pl +++ b/crypto/bn/asm/x86_64-mont.pl @@ -45,7 +45,6 @@ $m0="%rbx"; $m1="%rbp"; $code=<<___; -.section .note.GNU-stack,"",\@progbits .text .globl bn_mul_mont diff --git a/crypto/md5/asm/md5-x86_64.pl b/crypto/md5/asm/md5-x86_64.pl index b75cf3b7a4..867885435e 100755 --- a/crypto/md5/asm/md5-x86_64.pl +++ b/crypto/md5/asm/md5-x86_64.pl @@ -123,7 +123,6 @@ no warnings qw(uninitialized); open STDOUT,"| $^X $xlate $flavour $output"; $code .= <