Ignore:
Timestamp:
Feb 21, 2006, 1:29:15 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
db1bc75
Parents:
48c7e86
Message:

r803@server (orig r801): jim | 2005-12-02 08:36:39 -0800

r880@server: jim | 2005-12-02 08:36:09 -0800
Text Updates from G. Moko


File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/stripping.xml

    r48c7e86 rb4f5af8  
    1111  <title>Stripping</title>
    1212
    13   <para>If the intended user is not a programmer and does not plan to do
     13  <para os="a">If the intended user is not a programmer and does not plan to do
    1414  any debugging on the system software, the system size can be decreased
    1515  by about 200 MB by removing the debugging symbols from binaries and
     
    1717  debug the software fully anymore.</para>
    1818
    19   <para>Most people who use the command mentioned below do not
     19  <para os="b">Most people who use the command mentioned below do not
    2020  experience any difficulties. However, it is easy to make a typo and
    2121  render the new system unusable, so before running the
     
    2323  backup of the current situation.</para>
    2424
    25   <para>Before performing the stripping, take special care to ensure that
     25  <para os="c">Before performing the stripping, take special care to ensure that
    2626  none of the binaries that are about to be stripped are running. If
    2727  unsure whether the user entered chroot with the command given in
     
    2929  chroot:</para>
    3030
    31 <screen><userinput>logout</userinput></screen>
     31<screen os="d"><userinput>logout</userinput></screen>
    3232
    33     <para>Then reenter it with:</para>
     33    <para os="e">Then reenter it with:</para>
    3434
    35 <screen><userinput>chroot $LFS /tools/bin/env -i \
     35<screen os="f"><userinput>chroot $LFS /tools/bin/env -i \
    3636    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    3737    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    3838    /tools/bin/bash --login</userinput></screen>
    3939
    40     <para>Now the binaries and libraries can be safely stripped:</para>
     40    <para os="g">Now the binaries and libraries can be safely stripped:</para>
    4141
    42 <screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
     42<screen os="h"><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
    4343   -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
    4444
    45     <para>A large number of files will be reported as having their file
     45    <para os="i">A large number of files will be reported as having their file
    4646    format not recognized. These warnings can be safely ignored. These
    4747    warnings indicate that those files are scripts instead of
    4848    binaries.</para>
    4949
    50     <para>If disk space is very tight, the <option>--strip-all</option>
     50    <para os="j">If disk space is very tight, the <option>--strip-all</option>
    5151    option can be used on the binaries in <filename
    5252    class="directory">/{,usr/}{bin,sbin}</filename> to gain several more
Note: See TracChangeset for help on using the changeset viewer.