[ELF][MIPS] Accept MIPS 64-bit binaries

LLD accepts MIPS 64-bit binaries, supports corresponding eulation (-m)
arguments and emits 64-bit specific ELF flags.

llvm-svn: 268024
This commit is contained in:
Simon Atanasyan
2016-04-29 10:39:17 +00:00
parent bfaa63a82e
commit ae77ab71d8
5 changed files with 73 additions and 3 deletions

View File

@@ -616,6 +616,8 @@ static std::unique_ptr<InputFile> createELFFileAux(MemoryBufferRef MB) {
if (Config->EKind == ELFNoneKind) {
Config->EKind = Ret->getELFKind();
Config->EMachine = Ret->getEMachine();
if (Config->EMachine == EM_MIPS && Config->EKind == ELF64LEKind)
Config->Mips64EL = true;
}
return std::move(Ret);