diff --git a/llvm/docs/CommandGuide/llvm-strip.rst b/llvm/docs/CommandGuide/llvm-strip.rst --- a/llvm/docs/CommandGuide/llvm-strip.rst +++ b/llvm/docs/CommandGuide/llvm-strip.rst @@ -59,6 +59,15 @@ Write output to . Multiple input files cannot be used in combination with -o. +.. option:: --only-keep-debug + + Produce a debug file as the output that only preserves contents of sections + useful for debugging purposes. + + For ELF objects, this removes the contents of `SHF_ALLOC` sections that are not + `SHT_NOTE` by making them `SHT_NOBITS` and shrinking the program headers where + possible. + .. option:: --regex If specified, symbol and section names specified by other switches are treated @@ -129,18 +138,6 @@ Read command-line options and commands from response file ``. -COFF-SPECIFIC OPTIONS ---------------------- - -The following options are implemented only for COFF objects. If used with other -objects, :program:`llvm-strip` will either emit an error or silently ignore -them. - -.. option:: --only-keep-debug - - Remove the contents of non-debug sections from the output, but keep the section - headers. - ELF-SPECIFIC OPTIONS --------------------