mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
stripping: Switch to zstd to compress debug info
Now BLFS has valgrind-3.25.0 which supports zstd-compressed debug section.
This commit is contained in:
parent
9056a5ccae
commit
7a6cafbe95
@ -34,11 +34,8 @@
|
|||||||
After stripping with --strip-debug it is 5.9 MB. Using --strip-unneeded only
|
After stripping with --strip-debug it is 5.9 MB. Using --strip-unneeded only
|
||||||
reduces the size further to only 5.8 MB.</para>
|
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
|
<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
|
debugging information is needed to run regression tests with <ulink
|
||||||
url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
|
url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
|
||||||
url='&blfs-book;/general/gdb.html'>gdb</ulink> later, in BLFS.
|
url='&blfs-book;/general/gdb.html'>gdb</ulink> later, in BLFS.
|
||||||
@ -86,7 +83,7 @@
|
|||||||
cd /usr/lib
|
cd /usr/lib
|
||||||
|
|
||||||
for LIB in $save_usrlib; do
|
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
|
cp $LIB /tmp/$LIB
|
||||||
strip --strip-debug /tmp/$LIB
|
strip --strip-debug /tmp/$LIB
|
||||||
objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB
|
objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB
|
||||||
|
Loading…
Reference in New Issue
Block a user