[lfs] branch trunk updated: stripping: Switch to zstd to compress debug info
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <174610663169.12585.5561327753178028969@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository lfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 7a6cafbe9 stripping: Switch to zstd to compress debug info
7a6cafbe9 is described below
commit 7a6cafbe952b35a4d2de1f3c33ee90851fe74653
Author: Xi Ruoyao <[email protected]>
AuthorDate: Thu May 1 21:34:32 2025 +0800
stripping: Switch to zstd to compress debug info
Now BLFS has valgrind-3.25.0 which supports zstd-compressed debug
section.
---
chapter08/stripping.xml | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml
index 2839cfda7..b1f88f33a 100644
--- a/chapter08/stripping.xml
+++ b/chapter08/stripping.xml
@@ -34,11 +34,8 @@
After stripping with --strip-debug it is 5.9 MB. Using --strip-unneeded only
reduces the size further to only 5.8 MB.</para>
- <!-- TODO: Zstd is better than Zlib for both speed and size.
- Unfortunately Valgrind does not support Zstd-compressed debug
- info yet: https://bugs.kde.org/show_bug.cgi?id=469782 -->
<para>The debugging symbols from selected libraries are compressed with
- <application>Zlib</application> and preserved in separate files. That
+ <application>Zstd</application> and preserved in separate files. That
debugging information is needed to run regression tests with <ulink
url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
url='&blfs-book;/general/gdb.html'>gdb</ulink> later, in BLFS.
@@ -86,7 +83,7 @@
cd /usr/lib
for LIB in $save_usrlib; do
- objcopy --only-keep-debug --compress-debug-sections=zlib $LIB $LIB.dbg
+ objcopy --only-keep-debug --compress-debug-sections=zstd $LIB $LIB.dbg
cp $LIB /tmp/$LIB
strip --strip-debug /tmp/$LIB
objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page