[PATCH] D78344: Add "powerpcle" as a file format
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 20:33:51 PDT 2020
void created this revision.
void added reviewers: jhenderson, MaskRay.
Herald added subscribers: llvm-commits, steven.zhang, shchenz, nemanjai, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
Herald added a project: LLVM.
Little-endian PowerPC object files should report "powerpcle" instead of
"powerpc".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78344
Files:
llvm/include/llvm/Object/ELFObjectFile.h
llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
Index: llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
===================================================================
--- llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
+++ llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
@@ -147,7 +147,7 @@
# MIPS-SAME: mips
# PPC-SAME: powerpc{{$}}
# PPC64BE-SAME: powerpc{{$}}
-# PPC64LE-SAME: powerpc{{$}}
+# PPC64LE-SAME: powerpcle{{$}}
# RISCV32-SAME: riscv{{$}}
# RISCV64-SAME: riscv{{$}}
# SPARC-SAME: sparc
Index: llvm/include/llvm/Object/ELFObjectFile.h
===================================================================
--- llvm/include/llvm/Object/ELFObjectFile.h
+++ llvm/include/llvm/Object/ELFObjectFile.h
@@ -1110,7 +1110,7 @@
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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78344.258226.patch
Type: text/x-patch
Size: 1039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200417/f6c874ea/attachment.bin>
More information about the llvm-commits
mailing list