Index: lld/trunk/ELF/Driver.cpp =================================================================== --- lld/trunk/ELF/Driver.cpp +++ lld/trunk/ELF/Driver.cpp @@ -178,6 +178,7 @@ addFile(searchLibrary(Arg->getValue())); break; case OPT_INPUT: + case OPT_script: addFile(Arg->getValue()); break; case OPT_Bstatic: Index: lld/trunk/ELF/Options.td =================================================================== --- lld/trunk/ELF/Options.td +++ lld/trunk/ELF/Options.td @@ -67,6 +67,8 @@ def rpath : Separate<["-"], "rpath">, HelpText<"Add a DT_RUNPATH to the output">; +def script : Separate<["--"], "script">, HelpText<"Read linker script">; + def shared : Flag<["-"], "shared">, HelpText<"Build a shared object">; @@ -104,6 +106,7 @@ def alias_rpath_rpath : Joined<["-"], "rpath=">, Alias; def alias_soname_h : Separate<["-"], "h">, Alias; def alias_soname_soname : Separate<["-"], "soname">, Alias; +def alias_script_T : Separate<["-"], "T">, Alias