summaryrefslogtreecommitdiff
blob: 618cb110a38ae9dac21d589d344d8880fddf35c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Make sure library is generated without an executable stack

Patch by PaX team

--- nettle/sparc/aes.asm
+++ nettle/sparc/aes.asm
@@ -363,3 +363,7 @@
 	! aes256 (ECB decrypt): 11.13s, 0.898MB/s
 	! aes256 (CBC encrypt): 15.30s, 0.654MB/s
 	! aes256 (CBC decrypt): 12.93s, 0.773MB/s
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
--- nettle/x86/arcfour-crypt.asm
+++ nettle/x86/arcfour-crypt.asm
@@ -89,3 +89,7 @@
 	popl	%ebx
 	ret
 EPILOGUE(nettle_arcfour_crypt)
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
--- nettle/x86/aes.asm
+++ nettle/x86/aes.asm
@@ -4,3 +4,7 @@
 C isn't needed.
 
 	.file	"aes.asm"
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
--- nettle/x86/sha1-compress.asm
+++ nettle/x86/sha1-compress.asm
@@ -322,3 +322,7 @@
 C  of two instructions, one of which is a store, per two rounds. For the
 C  twenty rounds involving f3, that's 20 instructions, 10 of which are
 C  stores, or about 1.5 %.
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
--- nettle/x86/aes-encrypt.asm
+++ nettle/x86/aes-encrypt.asm
@@ -135,3 +135,7 @@
 	popl	%ebx
 	ret
 EPILOGUE(nettle_aes_encrypt)
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
--- nettle/x86/aes-decrypt.asm
+++ nettle/x86/aes-decrypt.asm
@@ -127,3 +127,7 @@
 	popl	%ebx
 	ret
 EPILOGUE(nettle_aes_decrypt)
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif