bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/19109] Cannot configure default flag_compress_debug


From: hjl.tools at gmail dot com
Subject: [Bug gas/19109] Cannot configure default flag_compress_debug
Date: Tue, 20 Oct 2015 15:30:31 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19109

--- Comment #27 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #26)
> Hi H.J.
> 
> > A patch to add
> > 
> >   --enable-compressed-debug-sections={all,gas,gold,ld}                      
> >   Enable compressed debug sections for gas, gold or ld
> >   by default
> 
> Before the patch goes in I would like to check a few things:
> 
>   * If compression is enabled for gas but not ld for example, 
>     does this mean that the linker will uncompress compressed
>     debug sections when it writes them out ?  Or rather, is

Yes.

>     that what configuring with --enable-compressed-debug-sections=gas 
>     implies ?

Yes.

>   * What happens if the linker is given some input files containing
>     compressed debug sections and some input files not containing 
>     compressed debug sections ?  Is the output always compressed ?

Linker always decompresses any compressed debug sections when reading
input files and generates compressed debug sections in output when
--enable-compressed-debug-sections=all or
--enable-compressed-debug-sections=[gas,]ld[,gold] are used.

>   * What advantage is gained by compressing debug sections, as opposed
>     to splitting out the debug information and the compressing the whole
>     debug file ?

How do you do that with .o files?  As for executable/shared libraries,
it should be decided by users.  In my case, I can compress debug sections
in as/ld and run them directly in gdb.  I don't need to a separate step
to extract/compress debug info.  I have many different versions of binutils
binaries laying around.  Separate debug files will only lead to trouble for
me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]