[lfs-book] r11064 - in trunk/BOOK: chapter01 chapter06

bdubbs at higgs.linuxfromscratch.org bdubbs at higgs.linuxfromscratch.org
Mon May 16 18:21:25 PDT 2016


Author: bdubbs
Date: Mon May 16 18:21:25 2016
New Revision: 11064

Log:
Enhance the stripping commands at the end of Chapter 6

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/strippingagain.xml

Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml	Mon May 16 18:06:38 2016	(r11063)
+++ trunk/BOOK/chapter01/changelog.xml	Mon May 16 18:21:25 2016	(r11064)
@@ -39,6 +39,10 @@
       <para>2016-05-16</para>
       <itemizedlist>
         <listitem>
+          <para>[bdubbs] - Enhance the stripping commands at the end
+          of Chapter 6.</para>
+        </listitem>
+        <listitem>
           <para>[bdubbs] - Made editorial changes to the kernel section.
           </para>
         </listitem>

Modified: trunk/BOOK/chapter06/strippingagain.xml
==============================================================================
--- trunk/BOOK/chapter06/strippingagain.xml	Mon May 16 18:06:38 2016	(r11063)
+++ trunk/BOOK/chapter06/strippingagain.xml	Mon May 16 18:21:25 2016	(r11064)
@@ -39,8 +39,14 @@
 
   <para>Now the binaries and libraries can be safely stripped:</para>
 
-<screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
-    -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
+<screen><userinput>/tools/bin/find /usr/lib -type f -name \*.a \
+   -exec /tools/bin/strip --strip-debug {} ';'
+
+/tools/bin/find /lib /usr/lib -type f -name \*.so* \
+   -exec /tools/bin/strip --strip-unneeded {} ';'
+
+/tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
+    -exec /tools/bin/strip --strip-all {} ';'</userinput></screen>
 
   <para>A large number of files will be reported as having their file
   format not recognized. These warnings can be safely ignored. These


More information about the lfs-book mailing list