* ldmain.c (main): Initialise print_gc_sections field of link_info structure.
authorNick Clifton <nickc@redhat.com>
Fri, 4 Aug 2006 14:53:26 +0000 (14:53 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 4 Aug 2006 14:53:26 +0000 (14:53 +0000)
commitc17d87de17351aed016a9d0b0712cdee4cca5f9e
tree13f06eeffc7669d44e8c5af57f8e7871ddef110b
parent55e6e39790fd27daea0bf1af3b9a7797c735a79f
* ldmain.c (main): Initialise print_gc_sections field of link_info structure.
* lexsup.c: Add --print-gc-sections and --no-print-gc-sections switches.
* ld.texinfo: Document new switches.
* NEWS: Mention new switches.
* bfdlink.h (struct bfd_link_info): New field: print_gc_sections.
* elflink.c (elf_gc_sweep): If info.print_gc_sections is true, list removed sections to stderr.
bfd/ChangeLog
bfd/elflink.c
include/ChangeLog
include/bfdlink.h
ld/ChangeLog
ld/NEWS
ld/ld.texinfo
ld/ldmain.c
ld/lexsup.c