aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-01-31 11:37:44 +1030
committerAlan Modra <amodra@gmail.com>2019-01-31 11:37:44 +1030
commit4f4690cd42476b0907b51a410fc026bfc94c66d2 (patch)
tree8adb033cd862b26ff27025515dbb8bf9328c3866 /ld
parent061e12709b50ac8862bbdf9c620d7c35a53f7088 (diff)
downloadfsf-binutils-gdb-4f4690cd42476b0907b51a410fc026bfc94c66d2.zip
fsf-binutils-gdb-4f4690cd42476b0907b51a410fc026bfc94c66d2.tar.gz
fsf-binutils-gdb-4f4690cd42476b0907b51a410fc026bfc94c66d2.tar.bz2
Document ld -t behaviour
* NEWS: Mention -t change. * ld.texi (--trace/-t): Expand documentation a little.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/NEWS6
-rw-r--r--ld/ld.texi6
3 files changed, 16 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index dc99b16..5713b00 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-31 Alan Modra <amodra@gmail.com>
+
+ * NEWS: Mention -t change.
+ * ld.texi (--trace/-t): Expand documentation a little.
+
2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
PR ld/24008
diff --git a/ld/NEWS b/ld/NEWS
index f13cdd7..d737af7 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -6,6 +6,12 @@ Changes in 2.32:
* Add support for the C-SKY processor series.
+* -t now doesn't report members within archives, unless -t is given twice.
+ A single -t is now more useful when generating a list of files that should be
+ packaged for a linker bug report. For example:
+ gcc hello.c -save-temps -Wl,-t | xargs realpath | sort | uniq > files
+ tar cJf test.tar.xz `cat files`
+
Changes in 2.31:
* Speed up direct linking with DLLs for Cygwin and Mingw targets.
diff --git a/ld/ld.texi b/ld/ld.texi
index d0ceea1..9bede66 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -961,7 +961,11 @@ Enabled by default.
@cindex input files, displaying
@item -t
@itemx --trace
-Print the names of the input files as @command{ld} processes them.
+Print the names of the input files as @command{ld} processes them. If
+@samp{-t} is given twice then members within archives are also printed.
+@samp{-t} output is useful to generate a list of all the object files
+and scripts involved in linking, for example, when packaging files for
+a linker bug report.
@kindex -T @var{script}
@kindex --script=@var{script}