Changeset 80da60f


Ignore:
Timestamp:
09/13/2023 07:39:25 AM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
b91b12a
Parents:
48d8f5a
Message:

stripping: Compress the kept debug info with Zlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/stripping.xml

    r48d8f5a r80da60f  
    3030  dynamically linked binaries and shared libraries).</para>
    3131
    32   <para>The debugging symbols from selected libraries are preserved
    33   in separate files.  That debugging information is needed to run
    34   regression tests with <ulink
     32  <!-- TODO: Zstd is better than Zlib for both speed and size.
     33             Unfortunately Valgrind does not support Zstd-compressed debug
     34             info yet: https://bugs.kde.org/show_bug.cgi?id=469782 -->
     35  <para>The debugging symbols from selected libraries are compressed with
     36  <application>Zlib</application> and preserved in separate files.  That
     37  debugging information is needed to run regression tests with <ulink
    3538  url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
    3639  url='&blfs-book;/general/gdb.html'>gdb</ulink> later, in BLFS.
     
    7982
    8083for LIB in $save_usrlib; do
    81     objcopy --only-keep-debug $LIB $LIB.dbg
     84    objcopy --only-keep-debug --compress-debug-sections=zlib $LIB $LIB.dbg
    8285    cp $LIB /tmp/$LIB
    8386    strip --strip-unneeded /tmp/$LIB
Note: See TracChangeset for help on using the changeset viewer.