diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index aba69a0de..7ed1c641d 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -40,6 +40,16 @@
appropriate for the entry or if needed the entire day's listitem.
-->
+
+ 2024-01-22
+
+
+ [xry111] - Patch OpenSSL-3.2.0 to fix various runtime issues
+ on LoongArch.
+
+
+
+
2024-01-21
diff --git a/chapter03/patches.xml b/chapter03/patches.xml
index 50ff56a6f..23cf87fd8 100644
--- a/chapter03/patches.xml
+++ b/chapter03/patches.xml
@@ -118,6 +118,14 @@
-->
+
+ OpenSSL LoongArch Fix Patch - &openssl-loongarch-patch-size;:
+
+ Download:
+ MD5 sum: &openssl-loongarch-patch-md5;
+
+
+
Pkgconf Upstream Fix Patch - &pkgconf-upstream-fix-patch-size;:
diff --git a/chapter08/openssl.xml b/chapter08/openssl.xml
index 60492b14d..e57768d3e 100644
--- a/chapter08/openssl.xml
+++ b/chapter08/openssl.xml
@@ -49,6 +49,12 @@
sed -e '/bn_reduce.*m1/i\ factor_size /= sizeof(BN_ULONG) * 8;' \
-i crypto/bn/rsaz_exp_x2.c
-->
+
+ First apply a patch to fix various runtime issues on
+ LoongArch:
+
+patch -Np1 -i ../&openssl-loongarch-patch;
+
Prepare OpenSSL for compilation:
./config --prefix=/usr \
diff --git a/patches.ent b/patches.ent
index d27c717de..c30e4fc4d 100644
--- a/patches.ent
+++ b/patches.ent
@@ -26,6 +26,10 @@
+
+
+
+