Changes in chapter08/strippingagain.xml [d7a9421:0ebda11]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/strippingagain.xml
rd7a9421 r0ebda11 39 39 40 40 cd /usr/lib 41 42 41 for LIB in $save_usrlib; do 43 42 objcopy --only-keep-debug $LIB $LIB.dbg 44 43 strip --strip-unneeded $LIB 45 44 objcopy --add-gnu-debuglink=$LIB.dbg $LIB 46 done 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> 47 60 48 61 unset LIB save_usrlib</userinput></screen> … … 57 70 <para>Now the binaries and libraries can be stripped:</para> 58 71 <screen><userinput>find /usr/lib -type f -name \*.a \ 59 -exec strip --strip-debug {} ';' 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> 60 77 61 78 find /usr/lib -type f -name \*.so* ! -name \*dbg \ 62 -exec strip --strip-unneeded {} ';' 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> 63 84 64 85 find /usr/{bin,sbin,libexec} -type f \
Note:
See TracChangeset
for help on using the changeset viewer.