summaryrefslogtreecommitdiffstats
path: root/testing/truecrypt/execstack-fix.patch
blob: d72fe0e14ae2116fbe359c1a13ed29d15a52c08e (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
--- ./Crypto/Aes_hw_cpu.asm.old	2011-06-01 17:12:53.078000001 -0400
+++ ./Crypto/Aes_hw_cpu.asm	2011-06-01 17:12:53.080000002 -0400
@@ -328,3 +328,12 @@
 
 
 %endif	; __BITS__ != 16
+	%ifidn __OUTPUT_FORMAT__,elf
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf32
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf64
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
--- ./Crypto/AesSmall_x86.asm.old	2011-06-01 17:12:53.084000002 -0400
+++ ./Crypto/AesSmall_x86.asm	2011-06-01 17:12:53.086000002 -0400
@@ -1442,3 +1442,12 @@
     db  v8(0xe1),v8(0x69),v8(0x14),v8(0x63),v8(0x55),v8(0x21),v8(0x0c),v8(0x7d)
 
 %endif
+	%ifidn __OUTPUT_FORMAT__,elf
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf32
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf64
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
--- ./Crypto/Aes_x64.asm.old	2011-06-01 17:12:53.090000002 -0400
+++ ./Crypto/Aes_x64.asm	2011-06-01 17:12:53.092000002 -0400
@@ -905,3 +905,12 @@
 %endif
 
 %endif
+	%ifidn __OUTPUT_FORMAT__,elf
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf32
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf64
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
--- ./Crypto/Aes_x86.asm.old	2011-06-01 17:12:53.096000002 -0400
+++ ./Crypto/Aes_x86.asm	2011-06-01 17:12:53.097000002 -0400
@@ -644,3 +644,12 @@
     do_exit
 
 %endif
+	%ifidn __OUTPUT_FORMAT__,elf
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf32
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif
+	%ifidn __OUTPUT_FORMAT__,elf64
+	section .note.GNU-stack noalloc noexec nowrite progbits
+	%endif