Changeset df462a9 for chapter08/strippingagain.xml
- Timestamp:
- 05/12/2021 05:26:46 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 3de7f52
- Parents:
- 0e9fb93 (diff), d7a9421 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/strippingagain.xml
r0e9fb93 rdf462a9 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 for LIB in $save_lib; do 40 objcopy --only-keep-debug $LIB $LIB.dbg 41 strip --strip-unneeded $LIB 42 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 43 done</userinput> 44 <userinput arch="ml_32,ml_all"> 45 cd &lib-m32; 46 for LIB in $save_lib; do 47 objcopy --only-keep-debug $LIB $LIB.dbg 48 strip --strip-unneeded $LIB 49 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 50 done</userinput> 51 <userinput arch="ml_x32,ml_all"> 52 cd &lib-mx32; 53 for LIB in $save_lib; do 54 objcopy --only-keep-debug $LIB $LIB.dbg 55 strip --strip-unneeded $LIB 56 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 57 done</userinput><userinput> 58 59 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; 60 38 libitm.so.&libitm-version; libatomic.so.&libatomic-version;" <!-- libcilkrts.so.&libcilkrts-version;--> 61 39 … … 81 59 done</userinput><userinput> 82 60 83 unset LIB save_ lib save_usrlib</userinput></screen>61 unset LIB save_usrlib</userinput></screen> 84 62 85 63 <!-- <para>Before performing the stripping, take special care to ensure that … … 98 76 -exec strip --strip-debug {} ';'</userinput><userinput> 99 77 100 find / lib /usr/lib -type f -name \*.so* ! -name \*dbg \78 find /usr/lib -type f -name \*.so* ! -name \*dbg \ 101 79 -exec strip --strip-unneeded {} ';'</userinput> 102 <userinput arch="ml_32,ml_all">find & lib-m32; &usr-lib-m32; -type f -name \*.so* ! -name \*dbg \80 <userinput arch="ml_32,ml_all">find &usr-lib-m32; -type f -name \*.so* ! -name \*dbg \ 103 81 -exec strip --strip-unneeded {} ';'</userinput> 104 <userinput arch="ml_x32,ml_all">find & lib-mx32; &usr-lib-mx32; -type f -name \*.so* ! -name \*dbg \82 <userinput arch="ml_x32,ml_all">find &usr-lib-mx32; -type f -name \*.so* ! -name \*dbg \ 105 83 -exec strip --strip-unneeded {} ';'</userinput><userinput> 106 84 107 find / {bin,sbin} /usr/{bin,sbin,libexec} -type f \85 find /usr/{bin,sbin,libexec} -type f \ 108 86 -exec strip --strip-all {} ';'</userinput></screen> 109 87
Note:
See TracChangeset
for help on using the changeset viewer.