llvm.org GIT mirror llvm / b5ef83d
[Object][ELF] Test unknown type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226943 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 5 years ago
3 changed file(s) with 12 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2929 ECase(ET_DYN)
3030 ECase(ET_CORE)
3131 #undef ECase
32 IO.enumFallback(Value);
3233 }
3334
3435 void
959959 unsigned low = Data2MSB ? 17 : 16;
960960 if (Magic[high] == 0)
961961 switch (Magic[low]) {
962 default: break;
962 default: return file_magic::elf;
963963 case 1: return file_magic::elf_relocatable;
964964 case 2: return file_magic::elf_executable;
965965 case 3: return file_magic::elf_shared_object;
0 # RUN: yaml2obj -format=elf %s | llvm-readobj -file-headers - | FileCheck %s
1
2 !ELF
3 FileHeader: !FileHeader
4 Class: ELFCLASS64
5 Data: ELFDATA2LSB
6 Type: 42
7 Machine: EM_X86_64
8
9 # CHECK: Type: 0x2A