Ignore:
Timestamp:
05/25/2022 02:49:12 PM (2 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
arm
Children:
7ea2104
Parents:
3c51561
git-author:
Pierre Labastie <pierre.labastie@…> (05/22/2022 07:57:28 AM)
git-committer:
William Harrington <kb0iic@…> (05/25/2022 02:49:12 PM)
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

    r3c51561 r350c23e  
    4343  <note><para>The ELF loader's name is ld-linux-aarch64.so.1 on 64-bit systems
    4444  and ld-linux-armhf.so.3 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.