| 123456789101112131415161718192021222324252627282930313233343536373839404142 | --- chapter06/strippingagain.xml+++ chapter06/strippingagain.xml@@ -67,33 +67,15 @@ done  unset LIB save_lib save_usrlib</userinput></screen> -  <!--para>Before performing the stripping, take special care to ensure that-  none of the binaries that are about to be stripped are running. If-  unsure whether the user entered chroot with the command given in-  <xref linkend="ch-system-chroot" role=","/> first exit from-  chroot:</para-->   <para>在移除调试符号前,必须特别小心,-	  保证没有需要移除调试符号的二进制程序还在运行。-	  如果不确定是否使用 <xref linkend="ch-system-chroot"/>-	  中的命令进入了 chroot 环境,首先退出 chroot 环境:</para>--<screen role="nodump"><userinput>logout</userinput></screen>--  <para>然后再执行下列命令重新进入:</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> +<screen role="nodump"><userinput>exec /tools/bin/bash</userinput></screen>+     <note><title>译注</title>-	  <para>注意这里使用了 /tools/bin/bash 而不是 /bin/bash ,-		  因为 /bin 中的 bash 二进制文件将会被移除调试符号。-		  在 <xref linkend="ch-system-bash"/> 中我们执行了新编译的-		  /bin/bash ,因此必须退出 chroot 环境,再以 /tools/bin/bash-		  为 shell 重新进入。之后使用的 /tools/bin/find 和-		  /tools/bin/strip 同理。</para>+	  <para>注意这里使用 /tools/bin/bash 代替当前运行的 /bin/bash ,+		  因为 /bin/bash 二进制文件将会被移除调试符号。+		  之后使用的 /tools/bin/find 和 /tools/bin/strip 同理。</para>   </note>    <para>现在即可安全地移除程序和库的调试符号:</para>
 |