svn commit: r322824 - in head: lib/clang share/mk usr.bin/clang

John Baldwin jhb at freebsd.org
Fri Aug 25 14:32:16 UTC 2017


On Wednesday, August 23, 2017 11:30:25 PM John Baldwin wrote:
> Author: jhb
> Date: Wed Aug 23 23:30:25 2017
> New Revision: 322824
> URL: https://svnweb.freebsd.org/changeset/base/322824
> 
> Log:
>   Improve the coverage of debug symbols for MK_DEBUG_FILES.
>   
>   - Include debug symbols in static libraries.  This permits binaries
>     to include debug symbols for functions obtained from static libraries.
>   - Permit the C/C++ compiler flags added for MK_DEBUG_FILES to be
>     overridden by setting DEBUG_FILES_CFLAGS.  Use this to limit the debug
>     information for llvm libraries and binaries.
>   
>   Reviewed by:	emaste
>   Sponsored by:	DARPA / AFRL
>   Differential Revision:	https://reviews.freebsd.org/D12025

This does increase the size of installed worlds when MK_DEBUG_FILES=yes is
enabled (which is the default).  On amd64 and mips64 the libraries in /usr/lib
and /usr/lib32 each increased by about 150MB to 300MB.  The debug info for
binaries in /usr/bin (which is stored in /usr/lib/debug/usr/bin) increased another
300MB or so for a total increase of ~900MB.  Most of the increase was in llvm
binaries (clang, lld, lldb), but the svnlite binaries also have more debug info
since previously we were not geneating debug info for private libraries.

Without the changes to use -gline-tables-only/-g1 for llvm libraries and binaries
the amd64 world increased by almost 4GB with most of that increase in the debug
info for clang, lldb, lld, and llvm-tablegen.

One thing that might make this less painful in the future is being able to use
compressed debug symbols.

-- 
John Baldwin


More information about the svn-src-all mailing list