From 3f0c882398e626cd92503b1bd964a32e89f818dc Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Tue, 21 Dec 2004 19:38:32 +0000 Subject: Removed the text in chapter 06. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4446 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/strippingagain.xml | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) (limited to 'chapter06/strippingagain.xml') diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml index 1630cd2af..932db9f6f 100644 --- a/chapter06/strippingagain.xml +++ b/chapter06/strippingagain.xml @@ -4,44 +4,21 @@ Stripping again -If you are not a programmer and don't plan to do any debugging on your -system software, you can shrink your system by about 200 MB by removing the -debugging symbols from binaries and libraries. This causes no inconvenience -other than not being able to debug the software fully any more. - -Most people who use the command mentioned below don't experience any -problems. But it is easy to make a typo and render your new system unusable, so -before running the strip command it is probably a good idea to make a backup of -the current situation. - -If you are going to perform the stripping, special care is needed to -ensure you're not running any of the binaries that are about to be stripped. -If you're not sure whether you entered chroot with the command given in -, then first exit from chroot: +Exit from chroot: logout -Then reenter it with: +Reenter with: chroot $LFS /tools/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /tools/bin/bash --login -Now you can safely strip the binaries and libraries: +Strip the binaries and libraries: /tools/bin/find /{,usr/}{bin,lib,sbin} -type f \ -exec /tools/bin/strip --strip-debug '{}' ';' -A large number of files will be reported as having their file format not -recognized. These warnings can be safely ignored, they just mean that those -files are scripts instead of binaries, no harm is done. - -If you are really tight on disk space, you may want to use ---strip-all on the binaries in -/{,usr/}{bin,sbin} to gain several more megabytes. But do -not use this option on libraries: they would be -destroyed. - -- cgit v1.2.3-54-g00ecf