This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Support linker --compress-debug-sections
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 22 Jul 2010 15:41:09 +0200
- Subject: Re: RFC: Support linker --compress-debug-sections
- References: <AANLkTikA_Pxr1PaOflwT1aH2Q-gf4UgnjXFfXwmyA3yy@mail.gmail.com> <mcraapjabvm.fsf@google.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jul 22, 2010 at 06:23:41AM -0700, Ian Lance Taylor wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
> > linker now supports compressed debug sections. I am
> > investigating --compress-debug-sections, On one hand,
> > linker applies relocations when writing to disk after file layout
> > is set. On the other hand, compression, which has to be
> > done after all relocations are applied, will change file layout.
> >
> > I don't want to make massive changes to linker. I am planning
> > to put a mini objcopy in linker, which will compress debug
> > sections after the output has been written to disk. Any
> > comments?
>
> You're proposing to generate the full sized binary on disk, and then
> objcopy it to compress the debug sections? Is that really a win? Why
> not just add the option to objcopy and be done with it?
Or just let the user strip to separate file and compress the *.debug
file using whatever method he prefers.
Jakub