From a613960c4be169277fa1192f2aa1d4a6c107e796 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Tue, 20 Dec 2022 09:26:41 -0600 Subject: Removed redundant verbiage. Rewrote a very clumsy sentence. To speak of a difference (implying subtraction) and a factor (multiplication) as equivalent is confusing at best. --- chapter08/aboutdebug.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'chapter08/aboutdebug.xml') diff --git a/chapter08/aboutdebug.xml b/chapter08/aboutdebug.xml index d646b797e..e9b90d64b 100644 --- a/chapter08/aboutdebug.xml +++ b/chapter08/aboutdebug.xml @@ -17,8 +17,8 @@ the debugger can provide not only memory addresses, but also the names of the routines and variables. - However, the inclusion of these debugging symbols enlarges a - program or library significantly. The following is an example of the + The inclusion of these debugging symbols enlarges a + program or library significantly. Here are two examples of the amount of space these symbols occupy: @@ -28,7 +28,7 @@ A bash binary without debugging symbols: - 480 KB + 480 KB (60% smaller) Glibc and GCC files (/lib @@ -36,15 +36,14 @@ symbols: 87 MB - Glibc and GCC files without debugging symbols: 16 MB + Glibc and GCC files without debugging symbols: 16 MB (82% smaller) - Sizes may vary depending on which compiler and C library were used, - but when comparing programs with and without debugging symbols, the - difference will usually be a factor between two and five. - - Because most users will never use a debugger on their system software, + Sizes will vary depending on which compiler and C library were used, + but a program that has been stripped of debugging symbols is usually some + 50% to 80% smaller than its unstripped counterpart. + Because most users will never use a debugger on their system software, a lot of disk space can be regained by removing these symbols. The next section shows how to strip all debugging symbols from the programs and libraries. -- cgit v1.2.3-54-g00ecf