Index: lld/trunk/ELF/Config.h =================================================================== --- lld/trunk/ELF/Config.h +++ lld/trunk/ELF/Config.h @@ -58,6 +58,7 @@ bool NoUndefined; bool Shared; bool Static = false; + bool StripAll; bool SysvHash = true; bool Verbose; bool ZNodelete = false; Index: lld/trunk/ELF/Driver.cpp =================================================================== --- lld/trunk/ELF/Driver.cpp +++ lld/trunk/ELF/Driver.cpp @@ -146,6 +146,7 @@ Config->NoInhibitExec = Args.hasArg(OPT_noinhibit_exec); Config->NoUndefined = Args.hasArg(OPT_no_undefined); Config->Shared = Args.hasArg(OPT_shared); + Config->StripAll = Args.hasArg(OPT_strip_all); Config->Verbose = Args.hasArg(OPT_verbose); Config->DynamicLinker = getString(Args, OPT_dynamic_linker); Index: lld/trunk/ELF/Options.td =================================================================== --- lld/trunk/ELF/Options.td +++ lld/trunk/ELF/Options.td @@ -90,6 +90,9 @@ def soname : Joined<["-"], "soname=">, HelpText<"Set DT_SONAME">; +def strip_all : Flag<["--"], "strip-all">, + HelpText<"Strip all symbols">; + def sysroot : Joined<["--"], "sysroot=">, HelpText<"Set the system root">; @@ -124,6 +127,7 @@ def alias_soname_h : Separate<["-"], "h">, Alias; def alias_soname_soname : Separate<["-"], "soname">, Alias; def alias_script_T : Separate<["-"], "T">, Alias