Ignore:
Timestamp:
08/21/2022 12:27:28 PM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
8996c54f
Parents:
9836479
Message:

stripping: also mention symbol table bisides debug symbols

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/stripping.xml

    r9836479 r942e81de  
    1414  programmer and does not plan to do
    1515  any debugging on the system software, the system size can be decreased
    16   by about 2 GB by removing the debugging symbols from binaries and
    17   libraries. This causes no inconvenience other than not being able to
    18   debug the software fully anymore.</para>
     16  by about 2 GB by removing the debugging symbols and unneeded symbol table
     17  entries from binaries and libraries. This causes no inconvenience other
     18  than not being able to debug the software fully anymore.</para>
    1919
    2020  <para>Most people who use the commands mentioned below do not
     
    2323  <command>strip</command> commands, it is a good idea to make a
    2424  backup of the LFS system in its current state.</para>
     25
     26  <para>A <command>strip</command> command with
     27  <parameter>--strip-unneeded</parameter> option removes all debug symbols
     28  from a binary or library.  And, it removes all symbol table entries not
     29  needed by the linker (for static libraries) or dynamic linker (for
     30  dynamic-linked binaries and shared libraries).</para>
    2531
    2632  <para>The debugging symbols for selected libraries are placed
Note: See TracChangeset for help on using the changeset viewer.