diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -381,7 +381,7 @@ def start_lib: F<"start-lib">, HelpText<"Start a grouping of objects that should be treated as if they were together in an archive">; -def strip_all: F<"strip-all">, HelpText<"Strip all symbols">; +def strip_all: F<"strip-all">, HelpText<"Strip all symbols. Implies --strip-debug">; def strip_debug: F<"strip-debug">, HelpText<"Strip debugging information">; diff --git a/lld/docs/ld.lld.1 b/lld/docs/ld.lld.1 --- a/lld/docs/ld.lld.1 +++ b/lld/docs/ld.lld.1 @@ -503,6 +503,8 @@ in an archive. .It Fl -strip-all , Fl s Strip all symbols. +Implies +.Fl -strip-debug . .It Fl -strip-debug , Fl S Strip debugging information. .It Fl -symbol-ordering-file Ns = Ns Ar file