summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2019-09-25 13:09:12 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2019-09-25 13:09:12 +0000
commit4dd9b2faec5a3759e9911373e9fea64acda4c4e6 (patch)
treeb6445b09e7d85aa5624662020fb359c450c86ed8 /llvm
parent1e36ed7fbcc783b1deec562139957adeb8ade953 (diff)
downloadbcm5719-llvm-4dd9b2faec5a3759e9911373e9fea64acda4c4e6.tar.gz
bcm5719-llvm-4dd9b2faec5a3759e9911373e9fea64acda4c4e6.zip
[docs][llvm-strip] Update llvm-strip doc to better match llvm-objcopy's
Main changes are mostly wording of some options, but this change also fixes a switch reference so that a link is created and moves --strip-sections into the ELF-specific area since it is only supported for ELF currently. llvm-svn: 372864
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/CommandGuide/llvm-strip.rst20
1 files changed, 11 insertions, 9 deletions
diff --git a/llvm/docs/CommandGuide/llvm-strip.rst b/llvm/docs/CommandGuide/llvm-strip.rst
index 5f820d6ce4f..41529bf08cc 100644
--- a/llvm/docs/CommandGuide/llvm-strip.rst
+++ b/llvm/docs/CommandGuide/llvm-strip.rst
@@ -52,7 +52,7 @@ multiple file formats.
.. option:: --no-strip-all
- Disable --strip-all.
+ Disable :option:`--strip-all`.
.. option:: -o <file>
@@ -84,11 +84,7 @@ multiple file formats.
.. option:: --strip-debug, -g
- Remove all debug sections.
-
-.. option:: --strip-sections
-
- Remove all section headers and all sections not in segments.
+ Remove all debug sections from the output.
.. option:: --strip-symbol <symbol>, -N
@@ -147,12 +143,18 @@ them.
.. option:: --keep-symbol <symbol>, -K
- Do not remove symbols named ``<symbol>``. Can be specified multiple times to
- keep multiple symbols.
+ When removing symbols from the output, do not remove symbols named
+ ``<symbol>``. Can be specified multiple times to keep multiple symbols.
.. option:: --preserve-dates, -p
- Preserve access and modification timestamps.
+ Preserve access and modification timestamps in the output.
+
+.. option:: --strip-sections
+
+ Remove from the output all section headers and all section data not within
+ segments. Note that many tools will not be able to use an object without
+ section headers.
EXIT STATUS
-----------
OpenPOWER on IntegriCloud