diff options
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/stripping.xml | 12 |
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 |