This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch]: Print size of discarded sections
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Tristan Gingold <gingold at ACT-Europe dot FR>
- Cc: binutils at sourceware dot org
- Date: Thu, 25 Jun 2009 11:00:02 +0930
- Subject: Re: [Patch]: Print size of discarded sections
- References: <20090624085040.GA18124@saumur.act-europe.fr>
On Wed, Jun 24, 2009 at 10:50:40AM +0200, Tristan Gingold wrote:
> currently when discarded sections are printed in the linker map, their sizes
> are explicitely set to 0. Is there a good reason to do so ? Printing the
> size is convenient to evaluate the effect of --gc-sections.
I think printing a size of zero makes sense when a discarded input
section is printed in the main part of the map, since the section
doesn't contribute to its output section. I'd recommend adding a
parameter to print_input_section in order to print sizes just for
the list of discarded sections.
--
Alan Modra
Australia Development Lab, IBM