From 4dd9b2faec5a3759e9911373e9fea64acda4c4e6 Mon Sep 17 00:00:00 2001 From: James Henderson Date: Wed, 25 Sep 2019 13:09:12 +0000 Subject: [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 --- llvm/docs/CommandGuide/llvm-strip.rst | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'llvm/docs/CommandGuide') 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 @@ -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 , -N @@ -147,12 +143,18 @@ them. .. option:: --keep-symbol , -K - Do not remove symbols named ````. Can be specified multiple times to - keep multiple symbols. + When removing symbols from the output, do not remove symbols named + ````. 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 ----------- -- cgit v1.2.3