Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/strippingagain.xml

    rd7a9421 r0ebda11  
    3939
    4040cd /usr/lib
    41 
    4241for LIB in $save_usrlib; do
    4342    objcopy --only-keep-debug $LIB $LIB.dbg
    4443    strip --strip-unneeded $LIB
    4544    objcopy --add-gnu-debuglink=$LIB.dbg $LIB
    46 done
     45done</userinput>
     46<userinput arch="ml_32,ml_all">
     47cd /usr/lib32
     48for 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
     52done</userinput>
     53<userinput arch="ml_x32,ml_all">
     54cd /usr/libx32
     55for 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
     59done</userinput><userinput>
    4760
    4861unset LIB save_usrlib</userinput></screen>
     
    5770  <para>Now the binaries and libraries can be stripped:</para>
    5871<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>
    6077
    6178find /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>
    6384
    6485find /usr/{bin,sbin,libexec} -type f \
Note: See TracChangeset for help on using the changeset viewer.