diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-03-27 18:17:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-03-27 18:17:28 +0000 |
commit | cf2e4f5fdee71e74fac6d295e642375db2e9c4c4 (patch) | |
tree | 26bb5872e3ba2fe812702fbb0d1a6fbf920256d4 /ld/ld.texinfo | |
parent | 64664e69cb97239f938f8eacd317f4feb7a268a9 (diff) | |
download | gdb-cf2e4f5fdee71e74fac6d295e642375db2e9c4c4.zip gdb-cf2e4f5fdee71e74fac6d295e642375db2e9c4c4.tar.gz gdb-cf2e4f5fdee71e74fac6d295e642375db2e9c4c4.tar.bz2 |
* ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
* ldlang.c (init_os): Fail on an attempt to initialize any section
named DISCARD_SECTION_NAME.
(wild_doit): Discard input sections assigned to an output section
named DISCARD_SECTION_NAME.
* ld.texinfo: Document use of /DISCARD/.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index d4f8187..32d7497 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -781,7 +781,6 @@ exist, @code{ld} looks for it in the directories specified by any preceding @samp{-L} options. Multiple @samp{-T} options accumulate. @kindex -t -@cindex verbose @cindex input files, displaying @item -t Print the names of the input files as @code{ld} processes them. @@ -824,10 +823,11 @@ be added to. Use @samp{-Ur} only for the last partial link, and @samp{-r} for the others. @kindex --verbose -@cindex version +@cindex verbose @item --verbose Display the version number for @code{ld} and list the linker emulations -supported. Display which input files can and cannot be opened. +supported. Display which input files can and cannot be opened. Display +the linker script if using a default builtin script. @kindex -v @kindex -V @@ -1759,6 +1759,10 @@ sequence of characters, but any name which does not conform to the standard @code{ld} symbol name syntax must be quoted. @xref{Symbols, , Symbol Names}. +The special @var{secname} @samp{/DISCARD/} may be used to discard input +sections. Any sections which are assigned to an output section named +@samp{/DISCARD/} are not included in the final link output. + The linker will not create output sections which do not have any contents. This is for convenience when referring to input sections that may or may not exist. For example, |