diff options
author | Pierre Labastie <pierre.labastie@neuf.fr> | 2022-05-22 09:57:28 +0200 |
---|---|---|
committer | Pierre Labastie <pierre.labastie@neuf.fr> | 2022-05-22 09:57:28 +0200 |
commit | 8731bd1cd0e7f77964f000d6a936d24a8a2f89f7 (patch) | |
tree | 62de83acc4cc30f0fd808cd9bb871fd39d27a252 /chapter08 | |
parent | 07b9641cacbe5956f43a10491d1653ac34746f73 (diff) |
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".
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/stripping.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index e7ab14f6d..519119088 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -42,12 +42,14 @@ <note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems and ld-linux.so.2 on 32-bit systems. The construct below selects the - correct name for the current architecture.</para></note> + correct name for the current architecture, excluding anything ending + with <quote>g</quote>, in case the commands below have already been + run.</para></note> <!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC --> <!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"--> -<screen><userinput>save_usrlib="$(cd /usr/lib; ls ld-linux*) +<screen><userinput>save_usrlib="$(cd /usr/lib; ls ld-linux*[^g]) libc.so.6 libthread_db.so.1 libquadmath.so.&libquadmath-version; |