Index: ELF/Driver.cpp =================================================================== --- ELF/Driver.cpp +++ ELF/Driver.cpp @@ -232,6 +232,7 @@ addFile(searchLibrary(Arg->getValue())); break; case OPT_INPUT: + case OPT_script: addFile(Arg->getValue()); break; case OPT_Bstatic: Index: ELF/Options.td =================================================================== --- ELF/Options.td +++ 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_T : Separate<["-"], "T">, Alias