1 # RUN: yaml2obj %s --docnum=1 -o %t.i386
2 # RUN: llvm-readobj -h %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386
5 # I386-NEXT:Format: ELF32-i386
7 # I386-NEXT:AddressSize: 32bit
8 # I386-NEXT:LoadName: <Not found>
9 # I386-NEXT:ElfHeader {
11 # I386-NEXT: Magic: (7F 45 4C 46)
12 # I386-NEXT: Class: 32-bit (0x1)
13 # I386-NEXT: DataEncoding: LittleEndian (0x1)
14 # I386-NEXT: FileVersion: 1
15 # I386-NEXT: OS/ABI: GNU/Linux (0x3)
16 # I386-NEXT: ABIVersion: 0
17 # I386-NEXT: Unused: (00 00 00 00 00 00 00)
19 # I386-NEXT: Type: Relocatable (0x1)
20 # I386-NEXT: Machine: EM_386 (0x3)
21 # I386-NEXT: Version: 1
22 # I386-NEXT: Entry: 0x0
23 # I386-NEXT: ProgramHeaderOffset: 0x0
24 # I386-NEXT: SectionHeaderOffset: 0x48
25 # I386-NEXT: Flags [ (0x0)
27 # I386-NEXT: HeaderSize: 52
28 # I386-NEXT: ProgramHeaderEntrySize: 0
29 # I386-NEXT: ProgramHeaderCount: 0
30 # I386-NEXT: SectionHeaderEntrySize: 40
31 # I386-NEXT: SectionHeaderCount: 3
32 # I386-NEXT: StringTableSectionIndex: 2
44 # RUN: yaml2obj %s --docnum=2 -o %t.x86-64
45 # RUN: llvm-readobj -h %t.x86-64 \
46 # RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.x86-64 --check-prefix X86-64
48 # X86-64:File: [[FILE]]
49 # X86-64-NEXT:Format: ELF64-x86-64
50 # X86-64-NEXT:Arch: x86_64
51 # X86-64-NEXT:AddressSize: 64bit
52 # X86-64-NEXT:LoadName: <Not found>
53 # X86-64-NEXT:ElfHeader {
54 # X86-64-NEXT: Ident {
55 # X86-64-NEXT: Magic: (7F 45 4C 46)
56 # X86-64-NEXT: Class: 64-bit (0x2)
57 # X86-64-NEXT: DataEncoding: LittleEndian (0x1)
58 # X86-64-NEXT: FileVersion: 1
59 # X86-64-NEXT: OS/ABI: GNU/Linux (0x3)
60 # X86-64-NEXT: ABIVersion: 0
61 # X86-64-NEXT: Unused: (00 00 00 00 00 00 00)
63 # X86-64-NEXT: Type: Relocatable (0x1)
64 # X86-64-NEXT: Machine: EM_X86_64 (0x3E)
65 # X86-64-NEXT: Version: 1
66 # X86-64-NEXT: Entry: 0x0
67 # X86-64-NEXT: ProgramHeaderOffset: 0x0
68 # X86-64-NEXT: SectionHeaderOffset: 0x58
69 # X86-64-NEXT: Flags [ (0x0)
71 # X86-64-NEXT: HeaderSize: 64
72 # X86-64-NEXT: ProgramHeaderEntrySize: 0
73 # X86-64-NEXT: ProgramHeaderCount: 0
74 # X86-64-NEXT: SectionHeaderEntrySize: 64
75 # X86-64-NEXT: SectionHeaderCount: 3
76 # X86-64-NEXT: StringTableSectionIndex: 2
88 # RUN: yaml2obj %s --docnum=3 -o %t.lanai
89 # RUN: llvm-readobj -h %t.lanai \
90 # RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.lanai --check-prefix LANAI
99 # LANAI:File: [[FILE]]
100 # LANAI-NEXT:Format: ELF32-lanai
101 # LANAI-NEXT:Arch: lanai
102 # LANAI-NEXT:AddressSize: 32bit
103 # LANAI-NEXT:LoadName: <Not found>
104 # LANAI-NEXT:ElfHeader {
105 # LANAI-NEXT: Ident {
106 # LANAI-NEXT: Magic: (7F 45 4C 46)
107 # LANAI-NEXT: Class: 32-bit (0x1)
108 # LANAI-NEXT: DataEncoding: BigEndian (0x2)
109 # LANAI-NEXT: FileVersion: 1
110 # LANAI-NEXT: OS/ABI: SystemV (0x0)
111 # LANAI-NEXT: ABIVersion: 0
112 # LANAI-NEXT: Unused: (00 00 00 00 00 00 00)
114 # LANAI-NEXT: Type: Relocatable (0x1)
115 # LANAI-NEXT: Machine: EM_LANAI (0xF4)
116 # LANAI-NEXT: Version: 1
117 # LANAI-NEXT: Entry: 0x0
118 # LANAI-NEXT: ProgramHeaderOffset: 0x0
119 # LANAI-NEXT: SectionHeaderOffset: 0x48
120 # LANAI-NEXT: Flags [ (0x0)
122 # LANAI-NEXT: HeaderSize: 52
123 # LANAI-NEXT: ProgramHeaderEntrySize: 0
124 # LANAI-NEXT: ProgramHeaderCount: 0
125 # LANAI-NEXT: SectionHeaderEntrySize: 40
126 # LANAI-NEXT: SectionHeaderCount: 3
127 # LANAI-NEXT: StringTableSectionIndex: 2