2004-06-13 13:58:23 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
2004-06-13 13:58:23 +01:00
|
|
|
<sect1 id="ch-system-strippingagain">
|
2005-01-30 11:27:57 +00:00
|
|
|
<title>Stripping Again</title>
|
2004-06-13 13:58:23 +01:00
|
|
|
<?dbhtml filename="strippingagain.html"?>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Exit from chroot:</para>
|
2004-06-13 13:58:23 +01:00
|
|
|
|
|
|
|
<screen><userinput>logout</userinput></screen>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Reenter with:</para>
|
2004-06-13 13:58:23 +01:00
|
|
|
|
|
|
|
<screen><userinput>chroot $LFS /tools/bin/env -i \
|
|
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
|
|
|
/tools/bin/bash --login</userinput></screen>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Strip the binaries and libraries:</para>
|
2004-06-13 13:58:23 +01:00
|
|
|
|
|
|
|
<screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
|
|
|
|
-exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|