[ELF] Add aarch64elf emulation mode

llvm-svn: 278205
This commit is contained in:
Eugene Leviant 2016-08-10 08:19:35 +00:00
parent e32a3598bc
commit e4195dc803
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ static std::pair<ELFKind, uint16_t> parseEmulation(StringRef S) {
std::pair<ELFKind, uint16_t> Ret =
StringSwitch<std::pair<ELFKind, uint16_t>>(S)
.Case("aarch64elf", {ELF64LEKind, EM_AARCH64})
.Case("aarch64linux", {ELF64LEKind, EM_AARCH64})
.Case("armelf_linux_eabi", {ELF32LEKind, EM_ARM})
.Case("elf32_x86_64", {ELF32LEKind, EM_X86_64})