Changes in chapter08/strippingagain.xml [0ebda11:d7a9421]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/strippingagain.xml
r0ebda11 rd7a9421 39 39 40 40 cd /usr/lib 41 41 42 for LIB in $save_usrlib; do 42 43 objcopy --only-keep-debug $LIB $LIB.dbg 43 44 strip --strip-unneeded $LIB 44 45 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 45 done</userinput> 46 <userinput arch="ml_32,ml_all"> 47 cd /usr/lib32 48 for LIB in $save_usrlib; do 49 objcopy --only-keep-debug $LIB $LIB.dbg 50 strip --strip-unneeded $LIB 51 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 52 done</userinput> 53 <userinput arch="ml_x32,ml_all"> 54 cd /usr/libx32 55 for LIB in $save_usrlib; do 56 objcopy --only-keep-debug $LIB $LIB.dbg 57 strip --strip-unneeded $LIB 58 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 59 done</userinput><userinput> 46 done 60 47 61 48 unset LIB save_usrlib</userinput></screen> … … 70 57 <para>Now the binaries and libraries can be stripped:</para> 71 58 <screen><userinput>find /usr/lib -type f -name \*.a \ 72 -exec strip --strip-debug {} ';'</userinput> 73 <userinput arch="ml_32,ml_all">find /usr/lib32 -type f -name \*.a \ 74 -exec strip --strip-debug {} ';'</userinput> 75 <userinput arch="ml_x32,ml_all">find /usr/libx32 -type f -name \*.a \ 76 -exec strip --strip-debug {} ';'</userinput><userinput> 59 -exec strip --strip-debug {} ';' 77 60 78 61 find /usr/lib -type f -name \*.so* ! -name \*dbg \ 79 -exec strip --strip-unneeded {} ';'</userinput> 80 <userinput arch="ml_32,ml_all">find /usr/lib32 -type f -name \*.so* ! -name \*dbg \ 81 -exec strip --strip-unneeded {} ';'</userinput> 82 <userinput arch="ml_x32,ml_all">find /usr/libx32 -type f -name \*.so* ! -name \*dbg \ 83 -exec strip --strip-unneeded {} ';'</userinput><userinput> 62 -exec strip --strip-unneeded {} ';' 84 63 85 64 find /usr/{bin,sbin,libexec} -type f \
Note:
See TracChangeset
for help on using the changeset viewer.