Changeset d7a9421 for chapter08/strippingagain.xml
- Timestamp:
- 05/12/2021 04:24:11 AM (3 years ago)
- Branches:
- 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, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 5ed37b3, c034573, df462a9
- Parents:
- 0f7d4cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/strippingagain.xml
r0f7d4cb rd7a9421 34 34 35 35 <!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"--> 36 <screen><userinput>save_lib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so" 37 38 cd /lib 39 40 for LIB in $save_lib; do 41 objcopy --only-keep-debug $LIB $LIB.dbg 42 strip --strip-unneeded $LIB 43 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 44 done 45 46 save_usrlib="libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version; 36 <screen><userinput>save_usrlib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so 37 libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version; 47 38 libitm.so.&libitm-version; libatomic.so.&libatomic-version;" <!-- libcilkrts.so.&libcilkrts-version;--> 48 39 … … 55 46 done 56 47 57 unset LIB save_ lib save_usrlib</userinput></screen>48 unset LIB save_usrlib</userinput></screen> 58 49 59 50 <!-- <para>Before performing the stripping, take special care to ensure that … … 68 59 -exec strip --strip-debug {} ';' 69 60 70 find / lib /usr/lib -type f -name \*.so* ! -name \*dbg \61 find /usr/lib -type f -name \*.so* ! -name \*dbg \ 71 62 -exec strip --strip-unneeded {} ';' 72 63 73 find / {bin,sbin} /usr/{bin,sbin,libexec} -type f \64 find /usr/{bin,sbin,libexec} -type f \ 74 65 -exec strip --strip-all {} ';'</userinput></screen> 75 66
Note:
See TracChangeset
for help on using the changeset viewer.