aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-10-10 08:29:57 -0500
committerBrent Cook <busterb@gmail.com>2023-10-30 22:55:29 -0500
commit98a5122bc6b6efc2729b5c29a570500311310ca0 (patch)
tree59397095bd8c2d081b00881038c645f9b17b9be3 /update.sh
parent1fd73818df53ae51adb681a34b2d5bca4bb37e49 (diff)
downloadportable-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-xupdate.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 4c97ae3..93e71bb 100755
--- a/update.sh
+++ b/update.sh
@@ -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
199asm_src=$libcrypto_src 198asm_src=$CWD/asm
199rm -fr $asm_src
200cp -a $libcrypto_src $asm_src
201for i in `ls -1 patches/asm/*.patch | sort -n`; do
202 patch -d $asm_src -p 4 < $i;
203done
204
200gen_asm_stdout() { 205gen_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