Ignore:
Timestamp:
09/15/2023 10:54:55 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
7546d8b
Parents:
d58da4b (diff), ba40e32 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/stripping.xml

    rd58da4b r2df066c9  
    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
     
    8992online_usrbin="bash find strip"
    9093online_usrlib="libbfd-&binutils-version;.so
    91                libsframe.so.0.0.0
     94               libsframe.so.&libsframe-version;
    9295               libhistory.so.&readline-soversion;
    9396               libncursesw.so.&ncurses-version;
     
    9598               libreadline.so.&readline-soversion;
    9699               libz.so.&zlib-version;
     100               libzstd.so.&zstd-version;
    97101               $(cd /usr/lib; find libnss*.so* -type f)"
    98102
Note: See TracChangeset for help on using the changeset viewer.