diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -59,7 +59,7 @@ Remove most local symbols from the output. Different file formats may limit this to a subset of the local symbols. For example, file and section symbols in - ELF objects will not be discarded. + ELF objects will not be discarded. Additionally, remove all debug sections. .. option:: --dump-section
= 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 @@ -39,7 +39,7 @@ Remove most local symbols from the output. Different file formats may limit this to a subset of the local symbols. For example, file and section symbols in - ELF objects will not be discarded. + ELF objects will not be discarded. Additionally, remove all debug sections. .. option:: --enable-deterministic-archives, -D diff --git a/llvm/tools/llvm-objcopy/CommonOpts.td b/llvm/tools/llvm-objcopy/CommonOpts.td --- a/llvm/tools/llvm-objcopy/CommonOpts.td +++ b/llvm/tools/llvm-objcopy/CommonOpts.td @@ -99,7 +99,8 @@ def discard_all : Flag<["--"], "discard-all">, - HelpText<"Remove all local symbols except file and section symbols">; + HelpText<"Remove all local symbols except file and section symbols. Also " + "remove all debug sections">; def x : Flag<["-"], "x">, Alias, HelpText<"Alias for --discard-all">;