Changeset f6bcc50 for final-system/common/stripping.xml
- Timestamp:
- Feb 21, 2006, 1:29:15 AM (19 years ago)
- Children:
- a9c7b83
- Parents:
- 844eb89
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
final-system/common/stripping.xml
r844eb89 rf6bcc50 11 11 <title>Stripping</title> 12 12 13 <para >If the intended user is not a programmer and does not plan to do13 <para os="a">If the intended user is not a programmer and does not plan to do 14 14 any debugging on the system software, the system size can be decreased 15 15 by about 200 MB by removing the debugging symbols from binaries and … … 17 17 debug the software fully anymore.</para> 18 18 19 <para >Most people who use the command mentioned below do not19 <para os="b">Most people who use the command mentioned below do not 20 20 experience any difficulties. However, it is easy to make a typo and 21 21 render the new system unusable, so before running the … … 23 23 backup of the current situation.</para> 24 24 25 <para >Before performing the stripping, take special care to ensure that25 <para os="c">Before performing the stripping, take special care to ensure that 26 26 none of the binaries that are about to be stripped are running. If 27 27 unsure whether the user entered chroot with the command given in … … 29 29 chroot:</para> 30 30 31 <screen ><userinput>logout</userinput></screen>31 <screen os="d"><userinput>logout</userinput></screen> 32 32 33 <para >Then reenter it with:</para>33 <para os="e">Then reenter it with:</para> 34 34 35 <screen ><userinput>chroot $LFS /tools/bin/env -i \35 <screen os="f"><userinput>chroot $LFS /tools/bin/env -i \ 36 36 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 37 37 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ 38 38 /tools/bin/bash --login</userinput></screen> 39 39 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> 41 41 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 \ 43 43 -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen> 44 44 45 <para >A large number of files will be reported as having their file45 <para os="i">A large number of files will be reported as having their file 46 46 format not recognized. These warnings can be safely ignored. These 47 47 warnings indicate that those files are scripts instead of 48 48 binaries.</para> 49 49 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> 51 51 option can be used on the binaries in <filename 52 52 class="directory">/{,usr/}{bin,sbin}</filename> to gain several more
Note:
See TracChangeset
for help on using the changeset viewer.