mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user