diff options
author | Brent Cook <busterb@gmail.com> | 2023-10-10 08:29:57 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-10-30 22:55:29 -0500 |
commit | 98a5122bc6b6efc2729b5c29a570500311310ca0 (patch) | |
tree | 59397095bd8c2d081b00881038c645f9b17b9be3 /update.sh | |
parent | 1fd73818df53ae51adb681a34b2d5bca4bb37e49 (diff) | |
download | portable-98a5122bc6b6efc2729b5c29a570500311310ca0.tar.gz portable-98a5122bc6b6efc2729b5c29a570500311310ca0.tar.bz2 portable-98a5122bc6b6efc2729b5c29a570500311310ca0.zip |
portable asm generator patches for portable
This reverses changes from the 3.8.x upstream that are causing issues on
a few different platforms, including macOS x64, Windows, and older
Linux/FreeBSD.
Diffstat (limited to '')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -191,12 +191,17 @@ fixup_masm() { | |||
191 | | sed -e 's/|/OR/g' \ | 191 | | sed -e 's/|/OR/g' \ |
192 | | sed -e 's/~/NOT/g' \ | 192 | | sed -e 's/~/NOT/g' \ |
193 | | sed -e 's/1 << \([0-9]*\)/1 SHL \1/g' \ | 193 | | sed -e 's/1 << \([0-9]*\)/1 SHL \1/g' \ |
194 | | sed -e 's/^ALIGN.*//g' \ | ||
195 | > $2 | 194 | > $2 |
196 | } | 195 | } |
197 | 196 | ||
198 | # generate assembly crypto algorithms | 197 | # generate assembly crypto algorithms |
199 | asm_src=$libcrypto_src | 198 | asm_src=$CWD/asm |
199 | rm -fr $asm_src | ||
200 | cp -a $libcrypto_src $asm_src | ||
201 | for i in `ls -1 patches/asm/*.patch | sort -n`; do | ||
202 | patch -d $asm_src -p 4 < $i; | ||
203 | done | ||
204 | |||
200 | gen_asm_stdout() { | 205 | gen_asm_stdout() { |
201 | CC=true perl $asm_src/$2 $1 > crypto/$3.tmp | 206 | CC=true perl $asm_src/$2 $1 > crypto/$3.tmp |
202 | [ $1 = "elf" ] && cat <<-EOF >> crypto/$3.tmp | 207 | [ $1 = "elf" ] && cat <<-EOF >> crypto/$3.tmp |