Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/strippingagain.xml

    r0ebda11 rd7a9421  
    3939
    4040cd /usr/lib
     41
    4142for LIB in $save_usrlib; do
    4243    objcopy --only-keep-debug $LIB $LIB.dbg
    4344    strip --strip-unneeded $LIB
    4445    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>
     46done
    6047
    6148unset LIB save_usrlib</userinput></screen>
     
    7057  <para>Now the binaries and libraries can be stripped:</para>
    7158<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 {} ';'
    7760
    7861find /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 {} ';'
    8463
    8564find /usr/{bin,sbin,libexec} -type f \
Note: See TracChangeset for help on using the changeset viewer.