diff options
Diffstat (limited to 'patches/asm/0002-Revert-Use-explicit-.text-instead-of-.previous-to-pl.patch')
-rw-r--r-- | patches/asm/0002-Revert-Use-explicit-.text-instead-of-.previous-to-pl.patch | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/patches/asm/0002-Revert-Use-explicit-.text-instead-of-.previous-to-pl.patch b/patches/asm/0002-Revert-Use-explicit-.text-instead-of-.previous-to-pl.patch new file mode 100644 index 0000000..58568f5 --- /dev/null +++ b/patches/asm/0002-Revert-Use-explicit-.text-instead-of-.previous-to-pl.patch | |||
@@ -0,0 +1,162 @@ | |||
1 | From 8861777e025998cc80bb9e39e88a332e8aec2f26 Mon Sep 17 00:00:00 2001 | ||
2 | From: Brent Cook <busterb@gmail.com> | ||
3 | Date: Mon, 30 Oct 2023 22:00:12 -0500 | ||
4 | Subject: [PATCH 2/4] Revert "Use explicit .text instead of .previous to please | ||
5 | Windows/MinGW on amd64" | ||
6 | |||
7 | This reverts commit e8192f57c4e5910ce7badced4a24c8827810d567. | ||
8 | --- | ||
9 | src/lib/libcrypto/aes/asm/aes-x86_64.pl | 2 +- | ||
10 | src/lib/libcrypto/aes/asm/aesni-sha1-x86_64.pl | 2 +- | ||
11 | src/lib/libcrypto/aes/asm/aesni-x86_64.pl | 2 +- | ||
12 | src/lib/libcrypto/aes/asm/bsaes-x86_64.pl | 2 +- | ||
13 | src/lib/libcrypto/aes/asm/vpaes-x86_64.pl | 2 +- | ||
14 | src/lib/libcrypto/bn/asm/x86_64-mont5.pl | 2 +- | ||
15 | src/lib/libcrypto/camellia/asm/cmll-x86_64.pl | 2 +- | ||
16 | src/lib/libcrypto/modes/asm/ghash-x86_64.pl | 2 +- | ||
17 | src/lib/libcrypto/sha/asm/sha1-x86_64.pl | 2 +- | ||
18 | src/lib/libcrypto/sha/asm/sha512-x86_64.pl | 4 ++-- | ||
19 | 10 files changed, 11 insertions(+), 11 deletions(-) | ||
20 | |||
21 | diff --git a/src/lib/libcrypto/aes/asm/aes-x86_64.pl b/src/lib/libcrypto/aes/asm/aes-x86_64.pl | ||
22 | index b7399b552..2986a9fcc 100755 | ||
23 | --- a/src/lib/libcrypto/aes/asm/aes-x86_64.pl | ||
24 | +++ b/src/lib/libcrypto/aes/asm/aes-x86_64.pl | ||
25 | @@ -2535,7 +2535,7 @@ $code.=<<___; | ||
26 | .long 0x80808080, 0x80808080, 0xfefefefe, 0xfefefefe | ||
27 | .long 0x1b1b1b1b, 0x1b1b1b1b, 0, 0 | ||
28 | .align 64 | ||
29 | -.text | ||
30 | +.previous | ||
31 | ___ | ||
32 | |||
33 | # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame, | ||
34 | diff --git a/src/lib/libcrypto/aes/asm/aesni-sha1-x86_64.pl b/src/lib/libcrypto/aes/asm/aesni-sha1-x86_64.pl | ||
35 | index bafa906a0..8a428c9b1 100644 | ||
36 | --- a/src/lib/libcrypto/aes/asm/aesni-sha1-x86_64.pl | ||
37 | +++ b/src/lib/libcrypto/aes/asm/aesni-sha1-x86_64.pl | ||
38 | @@ -1084,7 +1084,7 @@ K_XX_XX: | ||
39 | .long 0xca62c1d6,0xca62c1d6,0xca62c1d6,0xca62c1d6 # K_60_79 | ||
40 | .long 0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f # pbswap mask | ||
41 | .align 64 | ||
42 | -.text | ||
43 | +.previous | ||
44 | ___ | ||
45 | |||
46 | # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame, | ||
47 | diff --git a/src/lib/libcrypto/aes/asm/aesni-x86_64.pl b/src/lib/libcrypto/aes/asm/aesni-x86_64.pl | ||
48 | index e662fbc7c..09612b1f8 100644 | ||
49 | --- a/src/lib/libcrypto/aes/asm/aesni-x86_64.pl | ||
50 | +++ b/src/lib/libcrypto/aes/asm/aesni-x86_64.pl | ||
51 | @@ -2732,7 +2732,7 @@ $code.=<<___; | ||
52 | .Lxts_magic: | ||
53 | .long 0x87,0,1,0 | ||
54 | .align 64 | ||
55 | -.text | ||
56 | +.previous | ||
57 | ___ | ||
58 | |||
59 | # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame, | ||
60 | diff --git a/src/lib/libcrypto/aes/asm/bsaes-x86_64.pl b/src/lib/libcrypto/aes/asm/bsaes-x86_64.pl | ||
61 | index 20e9e1f71..347f4c302 100644 | ||
62 | --- a/src/lib/libcrypto/aes/asm/bsaes-x86_64.pl | ||
63 | +++ b/src/lib/libcrypto/aes/asm/bsaes-x86_64.pl | ||
64 | @@ -2937,7 +2937,7 @@ _bsaes_const: | ||
65 | .quad 0x6363636363636363, 0x6363636363636363 | ||
66 | .align 64 | ||
67 | .size _bsaes_const,.-_bsaes_const | ||
68 | -.text | ||
69 | +.previous | ||
70 | ___ | ||
71 | |||
72 | # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame, | ||
73 | diff --git a/src/lib/libcrypto/aes/asm/vpaes-x86_64.pl b/src/lib/libcrypto/aes/asm/vpaes-x86_64.pl | ||
74 | index 3ffb1a303..ad5fa7522 100644 | ||
75 | --- a/src/lib/libcrypto/aes/asm/vpaes-x86_64.pl | ||
76 | +++ b/src/lib/libcrypto/aes/asm/vpaes-x86_64.pl | ||
77 | @@ -1063,7 +1063,7 @@ _vpaes_consts: | ||
78 | .quad 0x12D7560F93441D00, 0xCA4B8159D8C58E9C | ||
79 | .align 64 | ||
80 | .size _vpaes_consts,.-_vpaes_consts | ||
81 | -.text | ||
82 | +.previous | ||
83 | ___ | ||
84 | |||
85 | if ($win64) { | ||
86 | diff --git a/src/lib/libcrypto/bn/asm/x86_64-mont5.pl b/src/lib/libcrypto/bn/asm/x86_64-mont5.pl | ||
87 | index 7b9c6df27..1c8aa255c 100755 | ||
88 | --- a/src/lib/libcrypto/bn/asm/x86_64-mont5.pl | ||
89 | +++ b/src/lib/libcrypto/bn/asm/x86_64-mont5.pl | ||
90 | @@ -1037,7 +1037,7 @@ $code.=<<___; | ||
91 | .Linc: | ||
92 | .long 0,0, 1,1 | ||
93 | .long 2,2, 2,2 | ||
94 | -.text | ||
95 | +.previous | ||
96 | ___ | ||
97 | |||
98 | # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame, | ||
99 | diff --git a/src/lib/libcrypto/camellia/asm/cmll-x86_64.pl b/src/lib/libcrypto/camellia/asm/cmll-x86_64.pl | ||
100 | index 586e5d6e9..c16725f5c 100644 | ||
101 | --- a/src/lib/libcrypto/camellia/asm/cmll-x86_64.pl | ||
102 | +++ b/src/lib/libcrypto/camellia/asm/cmll-x86_64.pl | ||
103 | @@ -625,7 +625,7 @@ $_ivp="40(%rsp)"; | ||
104 | $_rsp="48(%rsp)"; | ||
105 | |||
106 | $code.=<<___; | ||
107 | -.text | ||
108 | +.previous | ||
109 | .globl Camellia_cbc_encrypt | ||
110 | .type Camellia_cbc_encrypt,\@function,6 | ||
111 | .align 16 | ||
112 | diff --git a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl | ||
113 | index 71d0822ac..bce62947f 100644 | ||
114 | --- a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl | ||
115 | +++ b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl | ||
116 | @@ -670,7 +670,7 @@ $code.=<<___; | ||
117 | .value 0xB5E0,0xB422,0xB664,0xB7A6,0xB2E8,0xB32A,0xB16C,0xB0AE | ||
118 | .value 0xBBF0,0xBA32,0xB874,0xB9B6,0xBCF8,0xBD3A,0xBF7C,0xBEBE | ||
119 | .align 64 | ||
120 | -.text | ||
121 | +.previous | ||
122 | ___ | ||
123 | |||
124 | # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame, | ||
125 | diff --git a/src/lib/libcrypto/sha/asm/sha1-x86_64.pl b/src/lib/libcrypto/sha/asm/sha1-x86_64.pl | ||
126 | index 43eee73c4..1ec7f609a 100755 | ||
127 | --- a/src/lib/libcrypto/sha/asm/sha1-x86_64.pl | ||
128 | +++ b/src/lib/libcrypto/sha/asm/sha1-x86_64.pl | ||
129 | @@ -1079,7 +1079,7 @@ K_XX_XX: | ||
130 | .long 0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc # K_40_59 | ||
131 | .long 0xca62c1d6,0xca62c1d6,0xca62c1d6,0xca62c1d6 # K_60_79 | ||
132 | .long 0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f # pbswap mask | ||
133 | -.text | ||
134 | +.previous | ||
135 | ___ | ||
136 | }}} | ||
137 | $code.=<<___; | ||
138 | diff --git a/src/lib/libcrypto/sha/asm/sha512-x86_64.pl b/src/lib/libcrypto/sha/asm/sha512-x86_64.pl | ||
139 | index 0517eab66..1a7d9bf2d 100755 | ||
140 | --- a/src/lib/libcrypto/sha/asm/sha512-x86_64.pl | ||
141 | +++ b/src/lib/libcrypto/sha/asm/sha512-x86_64.pl | ||
142 | @@ -289,7 +289,7 @@ $TABLE: | ||
143 | .long 0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3 | ||
144 | .long 0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208 | ||
145 | .long 0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2 | ||
146 | -.text | ||
147 | +.previous | ||
148 | ___ | ||
149 | } else { | ||
150 | $code.=<<___; | ||
151 | @@ -337,7 +337,7 @@ $TABLE: | ||
152 | .quad 0x3c9ebe0a15c9bebc,0x431d67c49c100d4c | ||
153 | .quad 0x4cc5d4becb3e42b6,0x597f299cfc657e2a | ||
154 | .quad 0x5fcb6fab3ad6faec,0x6c44198c4a475817 | ||
155 | -.text | ||
156 | +.previous | ||
157 | ___ | ||
158 | } | ||
159 | |||
160 | -- | ||
161 | 2.42.0 | ||
162 | |||