Changeset 8731bd1


Ignore:
Timestamp:
05/22/2022 07:57:28 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
2bb813a, 53efe272
Parents:
07b9641
Message:

stripping, chapter 8: prevent stripping ld-*.dbg

With the construct used in save_usrlib, if ld-linux-...dbg already
exists, it is stripped again and a file ld-linux-...dbg.dbg is
created. Prevent this by not listing files ending in "g".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/stripping.xml

    r07b9641 r8731bd1  
    4343  <note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems
    4444  and ld-linux.so.2 on 32-bit systems.  The construct below selects the
    45   correct name for the current architecture.</para></note>
     45  correct name for the current architecture, excluding anything ending
     46  with <quote>g</quote>, in case the commands below have already been
     47  run.</para></note>
    4648
    4749<!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC -->
    4850
    4951<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
    50 <screen><userinput>save_usrlib="$(cd /usr/lib; ls ld-linux*)
     52<screen><userinput>save_usrlib="$(cd /usr/lib; ls ld-linux*[^g])
    5153             libc.so.6
    5254             libthread_db.so.1
Note: See TracChangeset for help on using the changeset viewer.