diff options
author | Rui Ueyama <ruiu@google.com> | 2017-04-26 19:20:41 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-04-26 19:20:41 +0000 |
commit | a06ea07411c4b849b11126821847859538005f69 (patch) | |
tree | e52d4d21a7201a5633d76c3e3bdd80d3c6eccdf4 | |
parent | c7d4f6ac7ce3178554d117578bf56c79eb9809fb (diff) |
Merge r298568: Print out "suppoted targets"
git-svn-id: https://llvm.org/svn/llvm-project/lld/branches/release_40@301446 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | ELF/DriverUtils.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ELF/DriverUtils.cpp b/ELF/DriverUtils.cpp index 3a20cd76e..476266dd9 100644 --- a/ELF/DriverUtils.cpp +++ b/ELF/DriverUtils.cpp @@ -120,6 +120,20 @@ opt::InputArgList ELFOptTable::parse(ArrayRef<const char *> Argv) { void elf::printHelp(const char *Argv0) { ELFOptTable Table; Table.PrintHelp(outs(), Argv0, "lld", false); + outs() << "\n"; + + // Scripts generated by Libtool versions up to at least 2.4.6 (the most + // recent version as of March 2017) expect /supported targets:.* elf/ in + // a message for the -help option. If it doesn't match, the scripts + // assume that the linker doesn't support very basic features such as + // shared libraries. Therefore, we need to print out at least "elf". + // Here, we print out all the targets that we support. + outs() << Argv0 << ": supported targets: " + << "elf32-i386 elf32-iamcu elf32-littlearm elf32-powerpc " + << "elf32-tradbigmips elf32-tradlittlemips elf32-x86-64 " + << "elf32-ntradbigmips elf32-ntradlittlemips elf32-x86-64 " + << "elf64-amdgpu elf64-littleaarch64 elf64-powerpc " + << "elf64-tradbigmips elf64-tradlittlemips elf64-x86-64\n"; } // Reconstructs command line arguments so that so that you can re-run |