File bug-755395_intel-nonexecstack.diff of Package compat-openssl098.1339

Index: openssl-0.9.8j/crypto/x86_64cpuid.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/x86_64cpuid.pl
+++ openssl-0.9.8j/crypto/x86_64cpuid.pl
@@ -228,4 +228,9 @@ OPENSSL_wipe_cpu:
 .size	OPENSSL_wipe_cpu,.-OPENSSL_wipe_cpu
 ___
 
+print <<___;
+.section    .note.GNU-stack,"",\@progbits
+___
+
+
 close STDOUT;	# flush
Index: openssl-0.9.8j/crypto/aes/asm/aesni-x86_64.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/aes/asm/aesni-x86_64.pl
+++ openssl-0.9.8j/crypto/aes/asm/aesni-x86_64.pl
@@ -3059,4 +3059,6 @@ $code =~ s/\b(aes.*%xmm[0-9]+).*$/aesni(
 
 print $code;
 
+print ".section    .note.GNU-stack,\"\",\@progbits\n";
+
 close STDOUT;
Index: openssl-0.9.8j/crypto/bn/asm/x86_64-mont.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/bn/asm/x86_64-mont.pl
+++ openssl-0.9.8j/crypto/bn/asm/x86_64-mont.pl
@@ -208,6 +208,7 @@ bn_mul_mont:
 	ret
 .size	bn_mul_mont,.-bn_mul_mont
 .asciz	"Montgomery Multiplication for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
+.section    .note.GNU-stack,"",\@progbits
 ___
 
 print $code;
Index: openssl-0.9.8j/crypto/md5/asm/md5-x86_64.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/md5/asm/md5-x86_64.pl
+++ openssl-0.9.8j/crypto/md5/asm/md5-x86_64.pl
@@ -238,6 +238,7 @@ $code .= <<EOF;
 	pop	%rbp
 	ret
 .size md5_block_asm_data_order,.-md5_block_asm_data_order
+.section    .note.GNU-stack,\"\",\@progbits
 EOF
 
 print $code;
Index: openssl-0.9.8j/crypto/sha/asm/sha1-x86_64.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/sha/asm/sha1-x86_64.pl
+++ openssl-0.9.8j/crypto/sha/asm/sha1-x86_64.pl
@@ -1252,4 +1252,7 @@ ___
 
 $code =~ s/\`([^\`]*)\`/eval $1/gem;
 print $code;
+
+print ".section    .note.GNU-stack,\"\",\@progbits\n";
+
 close STDOUT;
Index: openssl-0.9.8j/crypto/sha/asm/sha512-x86_64.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/sha/asm/sha512-x86_64.pl
+++ openssl-0.9.8j/crypto/sha/asm/sha512-x86_64.pl
@@ -341,4 +341,5 @@ ___
 
 $code =~ s/\`([^\`]*)\`/eval $1/gem;
 print $code;
+print ".section    .note.GNU-stack,\"\",\@progbits\n";
 close STDOUT;
Index: openssl-0.9.8j/crypto/rc4/asm/rc4-x86_64.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/rc4/asm/rc4-x86_64.pl
+++ openssl-0.9.8j/crypto/rc4/asm/rc4-x86_64.pl
@@ -675,4 +675,6 @@ $code =~ s/RC4_set_key/private_RC4_set_k
 
 print $code;
 
+print ".section    .note.GNU-stack,\"\",\@progbits\n";
+
 close STDOUT;
Index: openssl-0.9.8j/crypto/aes/asm/aes-x86_64.pl
===================================================================
--- openssl-0.9.8j.orig/crypto/aes/asm/aes-x86_64.pl
+++ openssl-0.9.8j/crypto/aes/asm/aes-x86_64.pl
@@ -1576,4 +1576,6 @@ $code =~ s/\`([^\`]*)\`/eval($1)/gem;
 
 print $code;
 
+print ".section    .note.GNU-stack,\"\",\@progbits\n";
+
 close STDOUT;