Index: ELF/InputFiles.cpp =================================================================== --- ELF/InputFiles.cpp +++ ELF/InputFiles.cpp @@ -1071,6 +1071,7 @@ case Triple::ppc: return EM_PPC; case Triple::ppc64: + case Triple::ppc64le: return EM_PPC64; case Triple::x86: return T.isOSIAMCU() ? EM_IAMCU : EM_386; Index: test/ELF/lto/ppc64le.ll =================================================================== --- test/ELF/lto/ppc64le.ll +++ test/ELF/lto/ppc64le.ll @@ -0,0 +1,12 @@ +; REQUIRES: ppc + +; RUN: llvm-as %s -o %t.o +; RUN: ld.lld %t.o -o %t + +target datalayout = "e-m:e-i64:64-n32:64" +target triple = "powerpc64le-unknown-linux-gnu" + +define void @__start() { + entry: + ret void +}