diff options
author | Brent Cook <busterb@gmail.com> | 2023-05-27 01:21:29 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-05-27 01:21:29 -0500 |
commit | 3ef498f9e63a7a32529c86d5ba7460280b7ff306 (patch) | |
tree | 93a73e32cecabde431408ecc626175a7398a963e /update.sh | |
parent | e6dbcc47dcf8090a80ea0cd6ad9e867da2450102 (diff) | |
parent | 419fbd6fba15beaea3f3e6d22ef9e161f032f460 (diff) | |
download | portable-3.8.0.tar.gz portable-3.8.0.tar.bz2 portable-3.8.0.zip |
Land #865, fix asm on x86_64 macOSv3.8.0
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -194,6 +194,11 @@ fixup_masm() { | |||
194 | > $2 | 194 | > $2 |
195 | } | 195 | } |
196 | 196 | ||
197 | fixup_macosx() { | ||
198 | echo Fixing up $2 | ||
199 | sed -e 's/endbr64//' $1 > $2 | ||
200 | } | ||
201 | |||
197 | # generate assembly crypto algorithms | 202 | # generate assembly crypto algorithms |
198 | asm_src=$libcrypto_src | 203 | asm_src=$libcrypto_src |
199 | gen_asm_stdout() { | 204 | gen_asm_stdout() { |
@@ -205,6 +210,8 @@ gen_asm_stdout() { | |||
205 | EOF | 210 | EOF |
206 | if [ $1 = "masm" ]; then | 211 | if [ $1 = "masm" ]; then |
207 | fixup_masm crypto/$3.tmp crypto/$3 | 212 | fixup_masm crypto/$3.tmp crypto/$3 |
213 | elif [ $1 = "macosx" ]; then | ||
214 | fixup_macosx crypto/$3.tmp crypto/$3 | ||
208 | else | 215 | else |
209 | $MV crypto/$3.tmp crypto/$3 | 216 | $MV crypto/$3.tmp crypto/$3 |
210 | fi | 217 | fi |
@@ -231,6 +238,8 @@ gen_asm() { | |||
231 | EOF | 238 | EOF |
232 | if [ $1 = "masm" ]; then | 239 | if [ $1 = "masm" ]; then |
233 | fixup_masm crypto/$3.tmp crypto/$3 | 240 | fixup_masm crypto/$3.tmp crypto/$3 |
241 | elif [ $1 = "macosx" ]; then | ||
242 | fixup_macosx crypto/$3.tmp crypto/$3 | ||
234 | else | 243 | else |
235 | $MV crypto/$3.tmp crypto/$3 | 244 | $MV crypto/$3.tmp crypto/$3 |
236 | fi | 245 | fi |