From b45f4819f0872628738c082c76e1d3f70fb3e5b6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 17 Aug 2025 16:12:50 +0800 Subject: [PATCH 1/2] glibc: Fix the description of the sed command --- chapter08/glibc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 389f066ec..6a05007e6 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -50,7 +50,7 @@ patch -Np1 -i ../&glibc-fhs-patch; - Now fix a security vulnerability: + Now fix an issue which may break Valgrind in BLFS: sed -e '/unistd.h/i #include <string.h>' \ -e '/libc_rwlock_init/c\ From f02fb1054b0b340de2e0e13a7179fc1db791ac5b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 17 Aug 2025 16:25:26 +0800 Subject: [PATCH 2/2] gcc-pass1: Fix typos in the explanation of -i.orig --- chapter05/gcc-pass1.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 3a537e014..a5aa62e45 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -76,9 +76,9 @@ esac This example demonstrates the use of the -i.orig switch. It makes the - sed copy the t-linux64 - to t-linux64.orig, and then edit the - t-linux64 inplace. So you may run + sed copy the t-linux64 file + to t-linux64.orig, and then edit the original + t-linux64 file inplace. So you may run diff -u gcc/config/i386/t-linux64{.orig,} to visualize the change done by the sed command afterwards. We'll simply use -i (which just