aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/strippingagain.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/strippingagain.xml')
-rw-r--r--chapter06/strippingagain.xml34
1 files changed, 9 insertions, 25 deletions
diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml
index eef553173..fb2a1b55f 100644
--- a/chapter06/strippingagain.xml
+++ b/chapter06/strippingagain.xml
@@ -56,38 +56,22 @@ done
unset LIB save_lib save_usrlib</userinput></screen>
- <para>Before performing the stripping, take special care to ensure that
+<!-- <para>Before performing the stripping, take special care to ensure that
none of the binaries that are about to be stripped are running:</para>
<screen role="nodump"><userinput>exec /tools/bin/bash</userinput></screen>
- <!--
- If
- unsure whether the user entered chroot with the command given in
- <xref linkend="ch-system-chroot" role=","/> first use the version
- of bash we created in
- chroot:</para>
-
-<screen role="nodump"><userinput>logout</userinput></screen>
-
- <para>Then reenter it with:</para>
-
-<screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i \
- HOME=/root TERM=$TERM \
- PS1='(lfs chroot) \u:\w\$ ' \
- PATH=/bin:/usr/bin:/sbin:/usr/sbin \
- /tools/bin/bash - -login</userinput></screen>-->
-
<para>Now the binaries and libraries can be safely stripped:</para>
+-->
+ <para>Now the binaries and libraries can be stripped:</para>
+<screen><userinput>find /usr/lib -type f -name \*.a \
+ -exec strip --strip-debug {} ';'
-<screen><userinput>/tools/bin/find /usr/lib -type f -name \*.a \
- -exec /tools/bin/strip --strip-debug {} ';'
-
-/tools/bin/find /lib /usr/lib -type f \( -name \*.so* -a ! -name \*dbg \) \
- -exec /tools/bin/strip --strip-unneeded {} ';'
+find /lib /usr/lib -type f -name \*.so* ! -name \*dbg \
+ -exec strip --strip-unneeded {} ';'
-/tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
- -exec /tools/bin/strip --strip-all {} ';'</userinput></screen>
+find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
+ -exec strip --strip-all {} ';'</userinput></screen>
<para>A large number of files will be reported as having their file
format not recognized. These warnings can be safely ignored. These