Ignore:
Timestamp:
04/23/2017 03:28:50 AM (5 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 8.1, 8.1-rc1, 8.1-rc2, 8.2, 8.2-rc1, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, cross-chap5, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
72031fe0
Parents:
7e9e040
Message:

Add instructions to save debugging information for selected libraries when
stripping at the end of Chapter 6.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11226 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/strippingagain.xml

    r7e9e040 r6c8a79a  
    2222  <command>strip</command> command, it is a good idea to make a
    2323  backup of the LFS system in its current state.</para>
     24
     25  <para>First back up some libraries that are needed when running regression
     26  tests in BLFS packages:</para>
     27
     28<screen><userinput>save_libs="ld- libatomic libc- libcilkrts ligfortran libgo libgomp"
     29save_libs="$save_libs libitm libmpx libobjc libpthread libquadmath"
     30save_libs="$save_libs libsanitizer libstdc++ libthread_db libvtv"
     31
     32mkdir -p /var/dbg/lib /var/dbg/usr/lib
     33
     34for lib in $save_libs
     35do
     36    find /usr/lib -name ${lib}*so* -type f -exec cp {} /var/dbg/usr/lib \;
     37    find /lib     -name ${lib}*so* -type f -exec cp {} /var/dbg/lib     \;
     38done</userinput></screen>
    2439
    2540  <para>Before performing the stripping, take special care to ensure that
     
    5368  warnings indicate that those files are scripts instead of
    5469  binaries.</para>
     70
     71  <para>If desired, restore the saved libraries with the debug data
     72  intact.  The files can restored now or just held for later use.  Note
     73  that several of the files cannot be copied directly after rebooting
     74  to the new LFS system. Later use requires booting to another system,
     75  mounting the LFS partition, and then copying the files.</para>
     76
     77<screen><userinput>cp -av /var/dbg/lib/* /lib
     78cp -av /var/dbg/usr/lib/* /usr/lib</userinput></screen>
     79
    5580</sect1>
Note: See TracChangeset for help on using the changeset viewer.