This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch]: Print size of discarded sections


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]