Date: Thu, 24 Aug 2017 13:32:37 -0700 From: John Baldwin <jhb@freebsd.org> To: src-committers@freebsd.org Cc: svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r322824 - in head: lib/clang share/mk usr.bin/clang Message-ID: <55772661.irLqry82cl@ralph.baldwin.cx> In-Reply-To: <201708232330.v7NNUPpV052276@repo.freebsd.org> References: <201708232330.v7NNUPpV052276@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55772661.irLqry82cl>