소스 검색

Enhance the stripping commands at the end of Chapter 6

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11064 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 9 년 전
부모
커밋
05797fee59
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 0
      chapter01/changelog.xml
  2. 8 2
      chapter06/strippingagain.xml

+ 4 - 0
chapter01/changelog.xml

@@ -38,6 +38,10 @@
     <listitem>
     <listitem>
       <para>2016-05-16</para>
       <para>2016-05-16</para>
       <itemizedlist>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Enhance the stripping commands at the end
+          of Chapter 6.</para>
+        </listitem>
         <listitem>
         <listitem>
           <para>[bdubbs] - Made editorial changes to the kernel section.
           <para>[bdubbs] - Made editorial changes to the kernel section.
           </para>
           </para>

+ 8 - 2
chapter06/strippingagain.xml

@@ -39,8 +39,14 @@
 
 
   <para>Now the binaries and libraries can be safely stripped:</para>
   <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
   <para>A large number of files will be reported as having their file
   format not recognized. These warnings can be safely ignored. These
   format not recognized. These warnings can be safely ignored. These