Changeset f6bcc50
- Timestamp:
- Feb 21, 2006, 1:29:15 AM (19 years ago)
- Children:
- a9c7b83
- Parents:
- 844eb89
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
final-system/common/aboutdebug.xml
r844eb89 rf6bcc50 11 11 <title>About Debugging Symbols</title> 12 12 13 <para >Most programs and libraries are, by default, compiled with debugging13 <para os="a">Most programs and libraries are, by default, compiled with debugging 14 14 symbols included (with <command>gcc</command>'s <option>-g</option> option). 15 15 This means that when debugging a program or library that was compiled with … … 17 17 addresses, but also the names of the routines and variables.</para> 18 18 19 <para >However, the inclusion of these debugging symbols enlarges a19 <para os="b">However, the inclusion of these debugging symbols enlarges a 20 20 program or library significantly. The following is an example of the 21 21 amount of space these symbols occupy:</para> 22 22 23 <itemizedlist >24 <listitem >23 <itemizedlist os="c"> 24 <listitem os="c1"> 25 25 <para>a bash binary with debugging symbols: 1200 KB</para> 26 26 </listitem> 27 <listitem >27 <listitem os="c2"> 28 28 <para>a bash binary without debugging symbols: 480 KB</para> 29 29 </listitem> 30 <listitem >30 <listitem os="c3"> 31 31 <para>Glibc and GCC files (<filename class="directory">/lib</filename> 32 32 and <filename class="directory">/usr/lib</filename>) with debugging 33 33 symbols: 87 MB</para> 34 34 </listitem> 35 <listitem >35 <listitem os="c4"> 36 36 <para>Glibc and GCC files without debugging symbols: 16 MB</para> 37 37 </listitem> 38 38 </itemizedlist> 39 39 40 <para >Sizes may vary depending on which compiler and C library were used,40 <para os="d">Sizes may vary depending on which compiler and C library were used, 41 41 but when comparing programs with and without debugging symbols, the 42 42 difference will usually be a factor between two and five.</para> 43 43 44 <para >Because most users will never use a debugger on their system software,44 <para os="e">Because most users will never use a debugger on their system software, 45 45 a lot of disk space can be regained by removing these symbols. The next 46 46 section shows how to strip all debugging symbols from the programs and -
final-system/common/shadow.xml
r844eb89 rf6bcc50 105 105 etc/login.defs > /etc/login.defs</userinput></screen> 106 106 107 <para os="r">Move a misplaced program to theirproper location:</para>107 <para os="r">Move a misplaced program to its proper location:</para> 108 108 109 109 <screen os="s"><userinput>mv /usr/bin/passwd /bin</userinput></screen> -
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 -
final-system/mips64-chapter.xml
r844eb89 rf6bcc50 90 90 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/dvhtool.xml"/> 91 91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/arcload.xml"/> 92 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/aboutdebug.xml"/>93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/stripping.xml"/>92 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/aboutdebug.xml"/> 93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/stripping.xml"/> 94 94 95 95 </chapter> -
final-system/multilib/perl-64bit.xml
r844eb89 rf6bcc50 99 99 xpointer="xpointer(//*[@os='j'])"/> 100 100 101 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 102 href="../common/perl.xml" 103 xpointer="xpointer(//*[@os='k'])"/> 104 101 105 </sect2> 102 106 -
final-system/sparc64-chapter.xml
r844eb89 rf6bcc50 77 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/elftoaout.xml"/> 78 78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/silo.xml"/> 79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/aboutdebug.xml"/>80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/stripping.xml"/>79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/aboutdebug.xml"/> 80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/stripping.xml"/> 81 81 82 82 </chapter> -
final-system/x86_64-chapter.xml
r844eb89 rf6bcc50 76 76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/hotplug.xml"/> 77 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/grub.xml"/> 78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/aboutdebug.xml"/>79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/stripping.xml"/>78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/aboutdebug.xml"/> 79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/stripping.xml"/> 80 80 81 81 </chapter> -
introduction/common/acknowledgements.xml
r844eb89 rf6bcc50 57 57 <para>Alexander E. Patrakov - Udev/Hotplug Integration</para> 58 58 </listitem> 59 <listitem> 60 <para>G. Moko - Text updates and Typos</para> 61 </listitem> 59 62 </itemizedlist> 60 63
Note:
See TracChangeset
for help on using the changeset viewer.