Changeset be628b7
- Timestamp:
- 05/08/2021 01:17:27 PM (21 months ago)
- Branches:
- xry111/usr-move
- Children:
- 7c1fce4e
- Parents:
- dc5635a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/strippingagain.xml
rdc5635a rbe628b7 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.