Index: lld/trunk/ELF/DriverUtils.cpp =================================================================== --- lld/trunk/ELF/DriverUtils.cpp +++ lld/trunk/ELF/DriverUtils.cpp @@ -116,7 +116,8 @@ void elf::printHelp(const char *Argv0) { ELFOptTable Table; - Table.PrintHelp(outs(), Argv0, "lld", false); + Table.PrintHelp(outs(), Argv0, "lld", false /*ShowHidden*/, + true /*ShowAllAliases*/); outs() << "\n"; // Scripts generated by Libtool versions up to at least 2.4.6 (the most Index: lld/trunk/test/ELF/help.s =================================================================== --- lld/trunk/test/ELF/help.s +++ lld/trunk/test/ELF/help.s @@ -0,0 +1,5 @@ +# RUN: ld.lld --help 2>&1 | FileCheck %s +# CHECK: OPTIONS: +# CHECK: --output= Path to file to write output +# CHECK: --output Path to file to write output +# CHECK: -o Path to file to write output