[PATCH] D23324: [ELF] Add some arm and aarch64 emulation modes, recognized by ld
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 9 09:10:00 PDT 2016
evgeny777 created this revision.
evgeny777 added a reviewer: ruiu.
evgeny777 added subscribers: ikudrin, grimar, emaste, davide, llvm-commits.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.
Herald added subscribers: samparker, rengolin, aemerson.
Required to build our projects
Repository:
rL LLVM
https://reviews.llvm.org/D23324
Files:
ELF/Driver.cpp
Index: ELF/Driver.cpp
===================================================================
--- ELF/Driver.cpp
+++ ELF/Driver.cpp
@@ -60,8 +60,18 @@
std::pair<ELFKind, uint16_t> Ret =
StringSwitch<std::pair<ELFKind, uint16_t>>(S)
+ .Case("aarch64elf", {ELF64LEKind, EM_AARCH64})
+ .Case("aarch64elfb", {ELF64BEKind, EM_AARCH64})
+ .Case("aarch64elf32", {ELF32LEKind, EM_AARCH64})
+ .Case("aarch64elf32b", {ELF32BEKind, EM_AARCH64})
+ .Case("aarch64linux32", {ELF32LEKind, EM_AARCH64})
+ .Case("aarch64linux32b", {ELF32BEKind, EM_AARCH64})
.Case("aarch64linux", {ELF64LEKind, EM_AARCH64})
+ .Case("aarch64linuxb", {ELF64BEKind, EM_AARCH64})
+ .Case("armelf", {ELF32LEKind, EM_ARM})
+ .Case("armelfb", {ELF32BEKind, EM_ARM})
.Case("armelf_linux_eabi", {ELF32LEKind, EM_ARM})
+ .Case("armelfb_linux_eabi", {ELF32BEKind, EM_ARM})
.Case("elf32_x86_64", {ELF32LEKind, EM_X86_64})
.Case("elf32btsmip", {ELF32BEKind, EM_MIPS})
.Case("elf32ltsmip", {ELF32LEKind, EM_MIPS})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23324.67359.patch
Type: text/x-patch
Size: 1119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160809/35b998a9/attachment.bin>
More information about the llvm-commits
mailing list