diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-04 14:53:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-04 14:53:25 +0000 |
commit | 76ddec15abf7557374341c96f999b4965bc10d8d (patch) | |
tree | c7212dee999aa83804184a3df5e0829e5bf37eff /include/bfdlink.h | |
parent | 840d9c1abe69cc57fdf6de8d6e59f85f0c899333 (diff) | |
download | cygnal-76ddec15abf7557374341c96f999b4965bc10d8d.tar.gz cygnal-76ddec15abf7557374341c96f999b4965bc10d8d.tar.bz2 cygnal-76ddec15abf7557374341c96f999b4965bc10d8d.zip |
* 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 'include/bfdlink.h')
-rw-r--r-- | include/bfdlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h index 761bd0513..bbedd6089 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -324,6 +324,9 @@ struct bfd_link_info /* TRUE if unreferenced sections should be removed. */ unsigned int gc_sections: 1; + /* TRUE if user shoudl be informed of removed unreferenced sections. */ + unsigned int print_gc_sections: 1; + /* TRUE if .hash section should be created. */ unsigned int emit_hash: 1; |