Changeset 6c8a79a for chapter06/strippingagain.xml
- Timestamp:
- 04/23/2017 03:28:50 AM (7 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 72031fe0
- Parents:
- 7e9e040
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/strippingagain.xml
r7e9e040 r6c8a79a 22 22 <command>strip</command> command, it is a good idea to make a 23 23 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" 29 save_libs="$save_libs libitm libmpx libobjc libpthread libquadmath" 30 save_libs="$save_libs libsanitizer libstdc++ libthread_db libvtv" 31 32 mkdir -p /var/dbg/lib /var/dbg/usr/lib 33 34 for lib in $save_libs 35 do 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 \; 38 done</userinput></screen> 24 39 25 40 <para>Before performing the stripping, take special care to ensure that … … 53 68 warnings indicate that those files are scripts instead of 54 69 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 78 cp -av /var/dbg/usr/lib/* /usr/lib</userinput></screen> 79 55 80 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.