Summary:
Little-endian PowerPC object files should report "elf64-powerpcle" instead of
"elf64-powerpc".
Reviewers: jhenderson, MaskRay, espindola, alexshap, rupprecht, #powerpc
Reviewed By: MaskRay
Subscribers: wuzish, emaste, nemanjai, shchenz, steven.zhang, llvm-commits
Tags: #llvm, #powerpc
Differential Revision: https://reviews.llvm.org/D78344
case ELF::EM_AARCH64:
return (IsLittleEndian ? "elf64-littleaarch64" : "elf64-bigaarch64");
case ELF::EM_PPC64:
- return "elf64-powerpc";
+ return (IsLittleEndian ? "elf64-powerpcle" : "elf64-powerpc");
case ELF::EM_RISCV:
return "elf64-littleriscv";
case ELF::EM_S390:
# MIPS-SAME: mips
# PPC-SAME: powerpc{{$}}
# PPC64BE-SAME: powerpc{{$}}
-# PPC64LE-SAME: powerpc{{$}}
+# PPC64LE-SAME: powerpcle{{$}}
# RISCV32-SAME: riscv{{$}}
# RISCV64-SAME: riscv{{$}}
# SPARC-SAME: sparc