Changeset 69a52c1 for chapter05/chapter05.xml
- Timestamp:
- 08/18/2003 08:53:34 PM (21 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/chapter05.xml
r2cff2cc r69a52c1 36 36 &c5-perl; 37 37 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 43 can throw away some unnecessary things. The executables and libraries you have 44 built so far contain about 130 MB of unneeded debugging symbols. Remove those 45 symbols like this:</para> 46 47 <para><screen><userinput>strip --strip-unneeded /stage1/{,s}bin/* 48 strip --strip-debug /stage1/lib/*</userinput></screen></para> 49 50 <para>The first of the above commands will skip some twenty files, reporting 51 that it doesn't recognize their file format. Most of them are scripts instead 52 of binaries.</para> 53 54 <para>Take care <emphasis>not</emphasis> to use 55 <userinput>--strip-unneeded</userinput> on the libraries -- they would be 56 destroyed 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 59 and some of the bigger unneeded programs:</para> 60 61 <para><screen><userinput>rm -r /stage1/share/{doc,info,man} 62 rm /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 65 filesystem to be able to build and install Glibc in the next phase.</para> 66 67 </sect1> 68 38 69 </chapter> 39 70
Note:
See TracChangeset
for help on using the changeset viewer.