[PATCH] New option --print-gc-sections

Eric Botcazou ebotcazou@adacore.com
Tue Apr 4 07:57:00 GMT 2006
> I still like the idea of displaying discarded sections in the link map
> output though.  I think it would be useful to do so whenever -Map or -M
> is given, so you wouldn't need a new ld option.  You also shouldn't need
> any new hooks.  At the end of lang_map, just iterate over input
> sections, looking for any that don't make it to the output bfd.

Thanks, works fine.  I've put it between the list of archives members included
in the link and the memory map.  Tested on AMD64/Linux.


2006-04-04  Eric Botcazou  <ebotcazou@adacore.com>

	* ldlang.c (lang_map): Print the list of discarded input sections.
	(print_input_section): Change parameter and print zero-sized sections.
	(print_statement): Adjust call to print_input_section.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f115-010-2_217.diff
Type: text/x-diff
Size: 2795 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060404/d0e4bc85/attachment.bin>


More information about the Binutils mailing list