summaryrefslogtreecommitdiffstats
path: root/lld/docs/index.rst
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-04-27 04:50:08 +0000
committerRui Ueyama <ruiu@google.com>2017-04-27 04:50:08 +0000
commit42fca6e7948117d7eb49a7ff2a51169b63e29e0e (patch)
tree861a54884a67c3bd46b5de066bada17e0bd4c6eb /lld/docs/index.rst
parentc9d82b9e16d0f4c81aefd0cbcdfa476ac2c17634 (diff)
downloadbcm5719-llvm-42fca6e7948117d7eb49a7ff2a51169b63e29e0e.tar.gz
bcm5719-llvm-42fca6e7948117d7eb49a7ff2a51169b63e29e0e.zip
Recommend users use readelf instead of objdump to dump .comment contents.
readelf's output is much easier to read than objdump's as you can see below. $ readelf --string-dump .comment foo String dump of section '.comment': [ 1] GCC: (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 [ 2c] clang version 5.0.0 [ 41] Linker: LLD 5.0.0 $ objdump -j .comment -s foo Contents of section .comment: 0000 00474343 3a202855 62756e74 7520342e .GCC: (Ubuntu 4. 0010 382e342d 32756275 6e747531 7e31342e 8.4-2ubuntu1~14. 0020 30342e33 2920342e 382e3400 636c616e 04.3) 4.8.4.clan 0030 67207665 7273696f 6e20352e 302e3020 g version 5.0.0 0040 004c696e 6b65723a 204c4c44 20352e30 .Linker: LLD 5.0 0050 2e3000 .0. llvm-svn: 301515
Diffstat (limited to 'lld/docs/index.rst')
-rw-r--r--lld/docs/index.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/docs/index.rst b/lld/docs/index.rst
index 6d9780458d1..fbdade7daf2 100644
--- a/lld/docs/index.rst
+++ b/lld/docs/index.rst
@@ -135,7 +135,7 @@ LDFLAGS when building your programs.
LLD leaves its name and version number to a ``.comment`` section in an
output. If you are in doubt whether you are successfully using LLD or
-not, run ``objdump -s -j .comment <output-file>`` and examine the
+not, run ``readelf --string-dump .comment <output-file>`` and examine the
output. If the string "Linker: LLD" is included in the output, you are
using LLD.
OpenPOWER on IntegriCloud