diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-04 14:53:26 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-04 14:53:26 +0000 |
commit | c17d87de17351aed016a9d0b0712cdee4cca5f9e (patch) | |
tree | 13f06eeffc7669d44e8c5af57f8e7871ddef110b /ld/ldmain.c | |
parent | 55e6e39790fd27daea0bf1af3b9a7797c735a79f (diff) | |
download | gdb-c17d87de17351aed016a9d0b0712cdee4cca5f9e.zip gdb-c17d87de17351aed016a9d0b0712cdee4cca5f9e.tar.gz gdb-c17d87de17351aed016a9d0b0712cdee4cca5f9e.tar.bz2 |
* 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.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index cb56a8d..4dab0d6 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -318,6 +318,7 @@ main (int argc, char **argv) link_info.relax_pass = 1; link_info.warn_shared_textrel = FALSE; link_info.gc_sections = FALSE; + link_info.print_gc_sections = FALSE; config.maxpagesize = 0; config.commonpagesize = 0; |