summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-08-04 14:53:25 +0000
committerNick Clifton <nickc@redhat.com>2006-08-04 14:53:25 +0000
commitc4e4f8f0379b7d3d5a4965f9f88f78d6554b4773 (patch)
tree20f00321dd0f9f9a687aa5c8cbd459c8e7f5238a /include
parent0374d1bc0f5c220add1f95b05d551a2e7f4ddf55 (diff)
downloadgdb-c4e4f8f0379b7d3d5a4965f9f88f78d6554b4773.tar.gz
* 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')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/bfdlink.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 75f1ed22f05..5140f8d1964 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
+
+ * bfdlink.h (struct bfd_link_info): New field: print_gc_sections.
+
2006-07-10 Jakub Jelinek <jakub@redhat.com>
* bfdlink.h (struct bfd_link_info): Add emit_hash and
diff --git a/include/bfdlink.h b/include/bfdlink.h
index 761bd0513e3..bbedd6089f2 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;