Ignore:
Timestamp:
07/26/2021 07:13:05 AM (3 years ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
ml-11.0, multilib
Children:
85cd74c2
Parents:
f18f2d6 (diff), ff96923 (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.
Message:

Merge upstream changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/strippingagain.xml

    rf18f2d6 r3388c22  
    3535<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
    3636<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;
     37             libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version; libz.so.&zlib-version;
    3838             libitm.so.&libitm-version; libatomic.so.&libatomic-version;" <!-- libcilkrts.so.&libcilkrts-version;-->
    3939
     
    4141for LIB in $save_usrlib; do
    4242    objcopy --only-keep-debug $LIB $LIB.dbg
    43     strip --strip-unneeded $LIB
    44     objcopy --add-gnu-debuglink=$LIB.dbg $LIB
     43    cp $LIB /tmp/$LIB
     44    strip --strip-unneeded /tmp/$LIB
     45    objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB
     46    install -vm755 /tmp/$LIB /usr/lib
     47    rm /tmp/$LIB
    4548done</userinput>
    4649<userinput arch="ml_32,ml_all">
    4750cd /usr/lib32
    4851for 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    objcopy --only-keep-debug $LIB $LIB.dbg
     53    cp $LIB /tmp/$LIB
     54    strip --strip-unneeded /tmp/$LIB
     55    objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB
     56    install -vm755 /tmp/$LIB /usr/lib32
     57    rm /tmp/$LIB
    5258done</userinput>
    5359<userinput arch="ml_x32,ml_all">
    5460cd /usr/libx32
    5561for 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
     62    objcopy --only-keep-debug $LIB $LIB.dbg
     63    cp $LIB /tmp/$LIB
     64    strip --strip-unneeded /tmp/$LIB
     65    objcopy --add-gnu-debuglink=$LIB.dbg /tmp/$LIB
     66    install -vm755 /tmp/$LIB /usr/libx32
     67    rm /tmp/$LIB
    5968done</userinput><userinput>
    6069
     
    7685   -exec strip --strip-debug {} ';'</userinput><userinput>
    7786
    78 find /usr/lib -type f -name \*.so* ! -name \*dbg \
     87find /usr/lib -type f -name \*.so* ! -name \*dbg ! -name libz.so* \
    7988   -exec strip --strip-unneeded {} ';'</userinput>
    80 <userinput arch="ml_32,ml_all">find /usr/lib32 -type f -name \*.so* ! -name \*dbg \
     89<userinput arch="ml_32,ml_all">find /usr/lib32 -type f -name \*.so* ! -name \*dbg ! -name libz.so* \
    8190   -exec strip --strip-unneeded {} ';'</userinput>
    82 <userinput arch="ml_x32,ml_all">find /usr/libx32 -type f -name \*.so* ! -name \*dbg \
     91<userinput arch="ml_x32,ml_all">find /usr/libx32 -type f -name \*.so* ! -name \*dbg ! -name libz.so* \
    8392   -exec strip --strip-unneeded {} ';'</userinput><userinput>
    8493
Note: See TracChangeset for help on using the changeset viewer.