aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-04-10 15:56:55 +0100
committerNick Clifton <nickc@redhat.com>2017-04-10 15:59:59 +0100
commita70f34c01c7f250858bd62df245c241263200f63 (patch)
treed39c4e6791abe4ea889c36fa382407e479d2a8cf /ld
parent9295a5a95da871bfdeec225a6fc2f52f7655bd1c (diff)
downloadgdb-a70f34c01c7f250858bd62df245c241263200f63.zip
gdb-a70f34c01c7f250858bd62df245c241263200f63.tar.gz
gdb-a70f34c01c7f250858bd62df245c241263200f63.tar.bz2
Document undocumented linker command line options.
ld * ld.texinfo (--strip-discarded): Document. (--embedded-relocs): Document. (--spare-dynamic-tags): Document. (--task-link): Document.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/ld.texinfo25
2 files changed, 32 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4dcfd81..bc31202 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2017-04-10 Nick Clifton <nickc@redhat.com>
+
+ * ld.texinfo (--strip-discarded): Document.
+ (--embedded-relocs): Document.
+ (--spare-dynamic-tags): Document.
+ (--task-link): Document.
+
2017-04-10 Alan Modra <amodra@gmail.com>
PR 21287
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 769725d..909342c 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -943,6 +943,13 @@ Omit all symbol information from the output file.
@itemx --strip-debug
Omit debugger symbol information (but not all symbols) from the output file.
+@kindex --strip-discarded
+@kindex --no-strip-discarded
+@item --strip-discarded
+@itemx --no-strip-discarded
+Omit (or do not omit) global symbols defined in discarded sections.
+Enabled by default.
+
@kindex -t
@kindex --trace
@cindex input files, displaying
@@ -1518,6 +1525,13 @@ linker to be used at load-time. This is only meaningful for ELF
executables that contain dynamic relocations, and usually requires
entry point code that is capable of processing these relocations.
+@kindex --embedded-relocs
+@item --embedded-relocs
+This option is similar to the @option{--emit-relocs} option except
+that the relocs are stored in a target specific section. This option
+is only supported by the @samp{BFIN}, @samp{CR16} and @emph{M68K}
+targets.
+
@kindex --fatal-warnings
@kindex --no-fatal-warnings
@item --fatal-warnings
@@ -1979,6 +1993,12 @@ patterns in the linker script.
This option will apply @code{SORT_BY_ALIGNMENT} to all wildcard section
patterns in the linker script.
+@kindex --spare-dynamic-tags
+@item --spare-dynamic-tags=@var{count}
+This option specifies the number of empty slots to leave in the
+.dynamic section of ELF shared objects. Empty slots may be needed by
+post processing tools, such as the prelinker. The default is 5.
+
@kindex --split-by-file
@item --split-by-file[=@var{size}]
Similar to @option{--split-by-reloc} but creates a new output section for
@@ -2009,6 +2029,11 @@ Use @var{directory} as the location of the sysroot, overriding the
configure-time default. This option is only supported by linkers
that were configured using @option{--with-sysroot}.
+@kindex --task-link
+@item --task-link
+This is used by COFF/PE based targets to create a task-linked object
+file where all of the global symbols have been converted to statics.
+
@kindex --traditional-format
@cindex traditional format
@item --traditional-format