PATCH: Compress debug sections for Linux/x86 by default
Alan Modra
amodra@gmail.com
Mon Jan 12 04:29:00 GMT 2015
On Fri, Jan 09, 2015 at 05:39:29AM -0800, H.J. Lu wrote:
> Since debuggers mostly deal with the outputs of linker,
> they won't even see the compressed debug sections.
Yes, I think some of the worry up-thread was due to thinking your
patch affected linker output. Even so, I don't think it is a good
change. Relocatable object files are generally temporary; You
compile package source, install the final linked binaries, then clean
up build directories. An optimisation that reduces temporary file
size obviously helps with disk storage, and may even reduce link
time. However there are some cases where relocatable object files are
installed, for example, crt*.o, library archives and kernel modules.
If you then try to use those object files with an older toolchain or
one built without zlib then you'll run into difficulty.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list