aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-08-21 20:27:28 +0800
committerXi Ruoyao <xry111@xry111.site>2022-08-21 20:27:28 +0800
commit942e81de788ae13a07afe6e6abbbb4fd6a1719ac (patch)
tree16ca6334cf1d386d2b9e69850935e798e0820c97
parent983647975bdd3c91cf4c1dc2ef8b23990e1d8c77 (diff)
stripping: also mention symbol table bisides debug symbols
-rw-r--r--chapter08/stripping.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml
index 519119088..d82b72ac1 100644
--- a/chapter08/stripping.xml
+++ b/chapter08/stripping.xml
@@ -13,9 +13,9 @@
<para>This section is optional. If the intended user is not a
programmer and does not plan to do
any debugging on the system software, the system size can be decreased
- by about 2 GB by removing the debugging symbols from binaries and
- libraries. This causes no inconvenience other than not being able to
- debug the software fully anymore.</para>
+ by about 2 GB by removing the debugging symbols and unneeded symbol table
+ entries from binaries and libraries. This causes no inconvenience other
+ than not being able to debug the software fully anymore.</para>
<para>Most people who use the commands mentioned below do not
experience any difficulties. However, it is easy to make a typo and
@@ -23,6 +23,12 @@
<command>strip</command> commands, it is a good idea to make a
backup of the LFS system in its current state.</para>
+ <para>A <command>strip</command> command with
+ <parameter>--strip-unneeded</parameter> option removes all debug symbols
+ from a binary or library. And, it removes all symbol table entries not
+ needed by the linker (for static libraries) or dynamic linker (for
+ dynamic-linked binaries and shared libraries).</para>
+
<para>The debugging symbols for selected libraries are placed
in separate files. This debugging information is needed if running
regression tests that use <ulink