summaryrefslogtreecommitdiffstats
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-08-04 14:53:26 +0000
committerNick Clifton <nickc@redhat.com>2006-08-04 14:53:26 +0000
commitc17d87de17351aed016a9d0b0712cdee4cca5f9e (patch)
tree13f06eeffc7669d44e8c5af57f8e7871ddef110b /ld/ld.texinfo
parent55e6e39790fd27daea0bf1af3b9a7797c735a79f (diff)
downloadppe42-binutils-c17d87de17351aed016a9d0b0712cdee4cca5f9e.tar.gz
ppe42-binutils-c17d87de17351aed016a9d0b0712cdee4cca5f9e.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 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo16
1 files changed, 14 insertions, 2 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index f3d9580518..835482d1c2 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1230,14 +1230,26 @@ it ends in a @code{.exe} suffix.
@kindex --gc-sections
@kindex --no-gc-sections
@cindex garbage collection
-@item --no-gc-sections
-@itemx --gc-sections
+@item --gc-sections
+@itemx --no-gc-sections
Enable garbage collection of unused input sections. It is ignored on
targets that do not support this option. This option is not compatible
with @samp{-r}. The default behaviour (of not performing this garbage
collection) can be restored by specifying @samp{--no-gc-sections} on
the command line.
+@kindex --print-gc-sections
+@kindex --no-print-gc-sections
+@cindex garbage collection
+@item --print-gc-sections
+@itemx --no-print-gc-sections
+List all sections removed by garbage collection. The listing is
+printed on stderr. This option is only effective if garbage
+collection has been enabled via the @samp{--gc-sections}) option. The
+default behaviour (of not listing the sections that are removed) can
+be restored by specifying @samp{--no-print-gc-sections} on the command
+line.
+
@cindex help
@cindex usage
@kindex --help
OpenPOWER on IntegriCloud