Ignore:
Timestamp:
08/18/2003 08:53:34 PM (21 years ago)
Author:
Alex Gronenwoud <alex@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
503e1a6
Parents:
2cff2cc
Message:

last text additions in chapter 5, added a section on stripping

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2672 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/chapter05.xml

    r2cff2cc r69a52c1  
    3636&c5-perl;
    3737
     38<sect1 id="ch05-stripping">
     39<title>Stripping</title>
     40<?dbhtml filename="stripping.html" dir="chapter05"?>
     41
     42<para>If your LFS partition is rather small, you will be glad to learn that you
     43can throw away some unnecessary things. The executables and libraries you have
     44built so far contain about 130 MB of unneeded debugging symbols. Remove those
     45symbols like this:</para>
     46
     47<para><screen><userinput>strip --strip-unneeded /stage1/{,s}bin/*
     48strip --strip-debug /stage1/lib/*</userinput></screen></para>
     49
     50<para>The first of the above commands will skip some twenty files, reporting
     51that it doesn't recognize their file format. Most of them are scripts instead
     52of binaries.</para>
     53
     54<para>Take care <emphasis>not</emphasis> to use
     55<userinput>--strip-unneeded</userinput> on the libraries -- they would be
     56destroyed and you would have to build Glibc all over again.</para>
     57
     58<para>To save another couple of megabytes, you can throw away the documentation
     59and some of the bigger unneeded programs:</para>
     60
     61<para><screen><userinput>rm -r /stage1/share/{doc,info,man}
     62rm /stage1/bin/{addr2line,gprof,nm,size,strings,strip}</userinput></screen></para>
     63
     64<para>You will now need to have at least 700 MB of free space on your LFS
     65filesystem to be able to build and install Glibc in the next phase.</para>
     66
     67</sect1>
     68
    3869</chapter>
    3970
Note: See TracChangeset for help on using the changeset viewer.