blob: 5accdd45693da9fab99bcf60fe3e0ddbdebdbbfb [file] [log] [blame]
Rafael Espindolae67c9c32013-05-21 18:53:50 +00001RUN: obj2yaml %p/Inputs/trivial-object-test.coff-i386 | FileCheck %s --check-prefix COFF-I386
2RUN: obj2yaml %p/Inputs/trivial-object-test.coff-x86-64 | FileCheck %s --check-prefix COFF-X86-64
Martin Storsjo8738ed42017-11-06 07:20:58 +00003RUN: obj2yaml %p/Inputs/trivial-object-test.coff-armnt | FileCheck %s --check-prefix COFF-ARMNT
4RUN: obj2yaml %p/Inputs/trivial-object-test.coff-arm64 | FileCheck %s --check-prefix COFF-ARM64
Simon Atanasyanb8236e52014-05-14 05:07:47 +00005RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mipsel | FileCheck %s --check-prefix ELF-MIPSEL
6RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mips64el | FileCheck %s --check-prefix ELF-MIPS64EL
7RUN: obj2yaml %p/Inputs/trivial-object-test.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64
Dylan McKaybd1e9792015-10-23 06:05:55 +00008RUN: obj2yaml %p/Inputs/trivial-object-test.elf-avr | FileCheck %s --check-prefix ELF-AVR
Sam Clegg3ba65662017-07-10 20:43:26 +00009RUN: obj2yaml %p/Inputs/trivial-object-test.wasm | FileCheck %s --check-prefix WASM
10RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64-UNWIND
Rafael Espindolaaa216362013-04-05 02:02:05 +000011
Rafael Espindola2bbe3782013-05-17 22:58:42 +000012COFF-I386: header:
13COFF-I386-NEXT: Machine: IMAGE_FILE_MACHINE_I386
Rafael Espindolaaa216362013-04-05 02:02:05 +000014
15COFF-I386: sections:
Rafael Espindola2bbe3782013-05-17 22:58:42 +000016COFF-I386-NEXT: - Name: .text
17COFF-I386-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18COFF-I386-NEXT: Alignment: 16
19COFF-I386-NEXT: SectionData: 83EC0CC744240800000000C7042400000000E800000000E8000000008B44240883C40CC3
Rafael Espindolaaa216362013-04-05 02:02:05 +000020
21COFF-I386: Relocations:
Rafael Espindola2bbe3782013-05-17 22:58:42 +000022COFF-I386-NEXT: - VirtualAddress: 14
Rafael Espindolae3a0e7f2013-06-06 13:06:17 +000023COFF-I386-NEXT: SymbolName: L_.str
Rafael Espindolaaa216362013-04-05 02:02:05 +000024COFF-I386-NEXT: Type: IMAGE_REL_I386_DIR32
25
Rafael Espindola2bbe3782013-05-17 22:58:42 +000026COFF-I386: - VirtualAddress: 19
Rafael Espindolae3a0e7f2013-06-06 13:06:17 +000027COFF-I386-NEXT: SymbolName: _puts
Rafael Espindolaaa216362013-04-05 02:02:05 +000028COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32
29
Rafael Espindola2bbe3782013-05-17 22:58:42 +000030COFF-I386: - VirtualAddress: 24
Rafael Espindolae3a0e7f2013-06-06 13:06:17 +000031COFF-I386-NEXT: SymbolName: _SomeOtherFunction
Rafael Espindolaaa216362013-04-05 02:02:05 +000032COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32
33
Rafael Espindola2bbe3782013-05-17 22:58:42 +000034COFF-I386: - Name: .data
35COFF-I386-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
36COFF-I386-NEXT: Alignment: 1
37COFF-I386-NEXT: SectionData: 48656C6C6F20576F726C642100
Rafael Espindolaaa216362013-04-05 02:02:05 +000038
39COFF-I386: symbols:
Rafael Espindola2bbe3782013-05-17 22:58:42 +000040COFF-I386-NEXT: - Name: .text
Rafael Espindolaaa216362013-04-05 02:02:05 +000041COFF-I386-NEXT: Value: 0
42COFF-I386-NEXT: SectionNumber: 1
Rafael Espindola2bbe3782013-05-17 22:58:42 +000043COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
44COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
45COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
David Majnemer6d191532014-03-19 04:47:47 +000046COFF-I386-NEXT: SectionDefinition:
47COFF-I386-NEXT: Length: 36
48COFF-I386-NEXT: NumberOfRelocations: 3
49COFF-I386-NEXT: NumberOfLinenumbers: 0
50COFF-I386-NEXT: CheckSum: 0
51COFF-I386-NEXT: Number: 1
Rafael Espindolaaa216362013-04-05 02:02:05 +000052
Rafael Espindola2bbe3782013-05-17 22:58:42 +000053COFF-I386: - Name: .data
Rafael Espindolaaa216362013-04-05 02:02:05 +000054COFF-I386-NEXT: Value: 0
55COFF-I386-NEXT: SectionNumber: 2
Rafael Espindola2bbe3782013-05-17 22:58:42 +000056COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
57COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
58COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
David Majnemer6d191532014-03-19 04:47:47 +000059COFF-I386-NEXT: SectionDefinition:
60COFF-I386-NEXT: Length: 13
61COFF-I386-NEXT: NumberOfRelocations: 0
62COFF-I386-NEXT: NumberOfLinenumbers: 0
63COFF-I386-NEXT: CheckSum: 0
64COFF-I386-NEXT: Number: 2
Rafael Espindolaaa216362013-04-05 02:02:05 +000065
Rafael Espindola2bbe3782013-05-17 22:58:42 +000066COFF-I386: - Name: _main
Rafael Espindolaaa216362013-04-05 02:02:05 +000067COFF-I386-NEXT: Value: 0
68COFF-I386-NEXT: SectionNumber: 1
Rafael Espindola2bbe3782013-05-17 22:58:42 +000069COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
70COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_FUNCTION
71COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
Rafael Espindolaaa216362013-04-05 02:02:05 +000072
Rafael Espindola2bbe3782013-05-17 22:58:42 +000073COFF-I386: - Name: L_.str
Rafael Espindolaaa216362013-04-05 02:02:05 +000074COFF-I386-NEXT: Value: 0
75COFF-I386-NEXT: SectionNumber: 2
Rafael Espindola2bbe3782013-05-17 22:58:42 +000076COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
77COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
78COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
Rafael Espindolaaa216362013-04-05 02:02:05 +000079
Rafael Espindola2bbe3782013-05-17 22:58:42 +000080COFF-I386: - Name: _puts
Rafael Espindolaaa216362013-04-05 02:02:05 +000081COFF-I386-NEXT: Value: 0
82COFF-I386-NEXT: SectionNumber: 0
Rafael Espindola2bbe3782013-05-17 22:58:42 +000083COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
84COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
85COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
Rafael Espindolaaa216362013-04-05 02:02:05 +000086
Rafael Espindola2bbe3782013-05-17 22:58:42 +000087COFF-I386: - Name: _SomeOtherFunction
Rafael Espindolaaa216362013-04-05 02:02:05 +000088COFF-I386-NEXT: Value: 0
89COFF-I386-NEXT: SectionNumber: 0
Rafael Espindola2bbe3782013-05-17 22:58:42 +000090COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
91COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
92COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
Rafael Espindolaaa216362013-04-05 02:02:05 +000093
94
Rafael Espindola2bbe3782013-05-17 22:58:42 +000095COFF-X86-64: header:
96COFF-X86-64-NEXT: Machine: IMAGE_FILE_MACHINE_AMD64
Rafael Espindolaaa216362013-04-05 02:02:05 +000097
98COFF-X86-64: sections:
Rafael Espindola2bbe3782013-05-17 22:58:42 +000099COFF-X86-64-NEXT: - Name: .text
100COFF-X86-64-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
101COFF-X86-64-NEXT: Alignment: 16
102COFF-X86-64-NEXT: SectionData: 4883EC28C744242400000000488D0D00000000E800000000E8000000008B4424244883C428C3
Rafael Espindolaaa216362013-04-05 02:02:05 +0000103
104COFF-X86-64: Relocations:
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000105COFF-X86-64-NEXT: - VirtualAddress: 15
Rafael Espindolae3a0e7f2013-06-06 13:06:17 +0000106COFF-X86-64-NEXT: SymbolName: L.str
Rafael Espindolaaa216362013-04-05 02:02:05 +0000107COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32
108
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000109COFF-X86-64: - VirtualAddress: 20
Rafael Espindolae3a0e7f2013-06-06 13:06:17 +0000110COFF-X86-64-NEXT: SymbolName: puts
Rafael Espindolaaa216362013-04-05 02:02:05 +0000111COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32
112
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000113COFF-X86-64: - VirtualAddress: 25
Rafael Espindolae3a0e7f2013-06-06 13:06:17 +0000114COFF-X86-64-NEXT: SymbolName: SomeOtherFunction
Rafael Espindolaaa216362013-04-05 02:02:05 +0000115COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32
116
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000117COFF-X86-64: - Name: .data
118COFF-X86-64-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
119COFF-X86-64-NEXT: Alignment: 1
120COFF-X86-64-NEXT: SectionData: 48656C6C6F20576F726C642100
Rafael Espindolaaa216362013-04-05 02:02:05 +0000121
David Majnemerde6256c2014-04-07 23:12:20 +0000122COFF-X86-64: - Name: '.CRT$XCU'
123COFF-X86-64-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
124COFF-X86-64-NEXT: Alignment: 8
David Majnemerfb065a12014-04-09 17:04:27 +0000125COFF-X86-64-NEXT: SectionData: '0000000000000000'
David Majnemerde6256c2014-04-07 23:12:20 +0000126
127COFF-X86-64: Relocations:
128COFF-X86-64-NEXT: - VirtualAddress: 0
129COFF-X86-64-NEXT: SymbolName: '??__Ex@@YAXXZ'
130COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_ADDR64
131
Rafael Espindolaaa216362013-04-05 02:02:05 +0000132COFF-X86-64: symbols:
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000133COFF-X86-64-NEXT: - Name: .text
Rafael Espindolaaa216362013-04-05 02:02:05 +0000134COFF-X86-64-NEXT: Value: 0
135COFF-X86-64-NEXT: SectionNumber: 1
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000136COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
137COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
138COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
David Majnemer6d191532014-03-19 04:47:47 +0000139COFF-X86-64-NEXT: SectionDefinition:
140COFF-X86-64-NEXT: Length: 38
141COFF-X86-64-NEXT: NumberOfRelocations: 3
142COFF-X86-64-NEXT: NumberOfLinenumbers: 0
143COFF-X86-64-NEXT: CheckSum: 0
144COFF-X86-64-NEXT: Number: 1
Rafael Espindolaaa216362013-04-05 02:02:05 +0000145
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000146COFF-X86-64: - Name: .data
Rafael Espindolaaa216362013-04-05 02:02:05 +0000147COFF-X86-64-NEXT: Value: 0
148COFF-X86-64-NEXT: SectionNumber: 2
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000149COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
150COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
151COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
David Majnemer6d191532014-03-19 04:47:47 +0000152COFF-X86-64-NEXT: SectionDefinition:
153COFF-X86-64-NEXT: Length: 13
154COFF-X86-64-NEXT: NumberOfRelocations: 0
155COFF-X86-64-NEXT: NumberOfLinenumbers: 0
156COFF-X86-64-NEXT: CheckSum: 0
157COFF-X86-64-NEXT: Number: 2
Rafael Espindolaaa216362013-04-05 02:02:05 +0000158
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000159COFF-X86-64: - Name: main
Rafael Espindolaaa216362013-04-05 02:02:05 +0000160COFF-X86-64-NEXT: Value: 0
161COFF-X86-64-NEXT: SectionNumber: 1
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000162COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
David Majnemerde6256c2014-04-07 23:12:20 +0000163COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_FUNCTION
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000164COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
Rafael Espindolaaa216362013-04-05 02:02:05 +0000165
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000166COFF-X86-64: - Name: L.str
Rafael Espindolaaa216362013-04-05 02:02:05 +0000167COFF-X86-64-NEXT: Value: 0
168COFF-X86-64-NEXT: SectionNumber: 2
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000169COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
170COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
171COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
Rafael Espindolaaa216362013-04-05 02:02:05 +0000172
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000173COFF-X86-64: - Name: puts
Rafael Espindolaaa216362013-04-05 02:02:05 +0000174COFF-X86-64-NEXT: Value: 0
175COFF-X86-64-NEXT: SectionNumber: 0
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000176COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
177COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
178COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
Rafael Espindolaaa216362013-04-05 02:02:05 +0000179
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000180COFF-X86-64: - Name: SomeOtherFunction
Rafael Espindolaaa216362013-04-05 02:02:05 +0000181COFF-X86-64-NEXT: Value: 0
182COFF-X86-64-NEXT: SectionNumber: 0
Rafael Espindola2bbe3782013-05-17 22:58:42 +0000183COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
184COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
185COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
David Majnemerde6256c2014-04-07 23:12:20 +0000186
187COFF-X86-64: - Name: '??__Ex@@YAXXZ'
188COFF-X86-64-NEXT: Value: 0
189COFF-X86-64-NEXT: SectionNumber: 3
190COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
191COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_FUNCTION
192COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000193
Martin Storsjo8738ed42017-11-06 07:20:58 +0000194COFF-ARMNT: header:
195COFF-ARMNT-NEXT: Machine: IMAGE_FILE_MACHINE_ARMNT
196
197COFF-ARMNT: sections:
198COFF-ARMNT-NEXT: - Name: .text
199COFF-ARMNT-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
200COFF-ARMNT-NEXT: Alignment: 4
201COFF-ARMNT-NEXT: SectionData: 00F000F87047
202
203COFF-ARMNT: Relocations:
204COFF-ARMNT-NEXT: - VirtualAddress: 0
205COFF-ARMNT-NEXT: SymbolName: otherFunc
206COFF-ARMNT-NEXT: Type: IMAGE_REL_ARM_BLX23T
207
208COFF-ARMNT: - Name: .data
209COFF-ARMNT-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
210COFF-ARMNT-NEXT: Alignment: 4
211COFF-ARMNT-NEXT: SectionData: ''
212
213COFF-ARMNT: - Name: .bss
214COFF-ARMNT-NEXT: Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
215COFF-ARMNT-NEXT: Alignment: 4
216COFF-ARMNT-NEXT: SectionData: ''
217
218COFF-ARMNT: symbols:
219COFF-ARMNT-NEXT: - Name: .text
220COFF-ARMNT-NEXT: Value: 0
221COFF-ARMNT-NEXT: SectionNumber: 1
222COFF-ARMNT-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
223COFF-ARMNT-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
224COFF-ARMNT-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
225COFF-ARMNT-NEXT: SectionDefinition:
226COFF-ARMNT-NEXT: Length: 6
227COFF-ARMNT-NEXT: NumberOfRelocations: 1
228COFF-ARMNT-NEXT: NumberOfLinenumbers: 0
229COFF-ARMNT-NEXT: CheckSum: 879026160
230COFF-ARMNT-NEXT: Number: 1
231
232COFF-ARMNT: - Name: .data
233COFF-ARMNT-NEXT: Value: 0
234COFF-ARMNT-NEXT: SectionNumber: 2
235COFF-ARMNT-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
236COFF-ARMNT-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
237COFF-ARMNT-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
238COFF-ARMNT-NEXT: SectionDefinition:
239COFF-ARMNT-NEXT: Length: 0
240COFF-ARMNT-NEXT: NumberOfRelocations: 0
241COFF-ARMNT-NEXT: NumberOfLinenumbers: 0
242COFF-ARMNT-NEXT: CheckSum: 0
243COFF-ARMNT-NEXT: Number: 2
244
245COFF-ARMNT: - Name: .bss
246COFF-ARMNT-NEXT: Value: 0
247COFF-ARMNT-NEXT: SectionNumber: 3
248COFF-ARMNT-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
249COFF-ARMNT-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
250COFF-ARMNT-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
251COFF-ARMNT-NEXT: SectionDefinition:
252COFF-ARMNT-NEXT: Length: 0
253COFF-ARMNT-NEXT: NumberOfRelocations: 0
254COFF-ARMNT-NEXT: NumberOfLinenumbers: 0
255COFF-ARMNT-NEXT: CheckSum: 0
256COFF-ARMNT-NEXT: Number: 3
257
258COFF-ARMNT: - Name: main
259COFF-ARMNT-NEXT: Value: 0
260COFF-ARMNT-NEXT: SectionNumber: 1
261COFF-ARMNT-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
262COFF-ARMNT-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
263COFF-ARMNT-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
264
265COFF-ARMNT: - Name: otherFunc
266COFF-ARMNT-NEXT: Value: 0
267COFF-ARMNT-NEXT: SectionNumber: 0
268COFF-ARMNT-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
269COFF-ARMNT-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
270COFF-ARMNT-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
271
272COFF-ARM64: header:
273COFF-ARM64-NEXT: Machine: IMAGE_FILE_MACHINE_ARM64
274
275COFF-ARM64: sections:
276COFF-ARM64-NEXT: - Name: .text
277COFF-ARM64-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
278COFF-ARM64-NEXT: Alignment: 4
279COFF-ARM64-NEXT: SectionData: 00000094C0035FD6
280
281COFF-ARM64: Relocations:
282COFF-ARM64-NEXT: - VirtualAddress: 0
283COFF-ARM64-NEXT: SymbolName: otherFunc
284COFF-ARM64-NEXT: Type: IMAGE_REL_ARM64_BRANCH26
285
286COFF-ARM64: - Name: .data
287COFF-ARM64-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
288COFF-ARM64-NEXT: Alignment: 4
289COFF-ARM64-NEXT: SectionData: ''
290
291COFF-ARM64: - Name: .bss
292COFF-ARM64-NEXT: Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
293COFF-ARM64-NEXT: Alignment: 4
294COFF-ARM64-NEXT: SectionData: ''
295
296COFF-ARM64: symbols:
297COFF-ARM64-NEXT: - Name: .text
298COFF-ARM64-NEXT: Value: 0
299COFF-ARM64-NEXT: SectionNumber: 1
300COFF-ARM64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
301COFF-ARM64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
302COFF-ARM64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
303COFF-ARM64-NEXT: SectionDefinition:
304COFF-ARM64-NEXT: Length: 8
305COFF-ARM64-NEXT: NumberOfRelocations: 1
306COFF-ARM64-NEXT: NumberOfLinenumbers: 0
307COFF-ARM64-NEXT: CheckSum: 35579893
308COFF-ARM64-NEXT: Number: 1
309
310COFF-ARM64: - Name: .data
311COFF-ARM64-NEXT: Value: 0
312COFF-ARM64-NEXT: SectionNumber: 2
313COFF-ARM64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
314COFF-ARM64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
315COFF-ARM64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
316COFF-ARM64-NEXT: SectionDefinition:
317COFF-ARM64-NEXT: Length: 0
318COFF-ARM64-NEXT: NumberOfRelocations: 0
319COFF-ARM64-NEXT: NumberOfLinenumbers: 0
320COFF-ARM64-NEXT: CheckSum: 0
321COFF-ARM64-NEXT: Number: 2
322
323COFF-ARM64: - Name: .bss
324COFF-ARM64-NEXT: Value: 0
325COFF-ARM64-NEXT: SectionNumber: 3
326COFF-ARM64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
327COFF-ARM64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
328COFF-ARM64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
329COFF-ARM64-NEXT: SectionDefinition:
330COFF-ARM64-NEXT: Length: 0
331COFF-ARM64-NEXT: NumberOfRelocations: 0
332COFF-ARM64-NEXT: NumberOfLinenumbers: 0
333COFF-ARM64-NEXT: CheckSum: 0
334COFF-ARM64-NEXT: Number: 3
335
336COFF-ARM64: - Name: main
337COFF-ARM64-NEXT: Value: 0
338COFF-ARM64-NEXT: SectionNumber: 1
339COFF-ARM64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
340COFF-ARM64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
341COFF-ARM64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
342
343COFF-ARM64: - Name: otherFunc
344COFF-ARM64-NEXT: Value: 0
345COFF-ARM64-NEXT: SectionNumber: 0
346COFF-ARM64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
347COFF-ARM64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
348COFF-ARM64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
349
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000350ELF-MIPSEL: FileHeader:
351ELF-MIPSEL-NEXT: Class: ELFCLASS32
352ELF-MIPSEL-NEXT: Data: ELFDATA2LSB
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000353ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000354ELF-MIPSEL-NEXT: Type: ET_REL
355ELF-MIPSEL-NEXT: Machine: EM_MIPS
Simon Atanasyan84a0dc32014-05-23 08:07:09 +0000356ELF-MIPSEL-NEXT: Flags: [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000357ELF-MIPSEL-NEXT: Sections:
358ELF-MIPSEL-NEXT: - Name: .text
359ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
360ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000361ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
362ELF-MIPSEL-NEXT: Content: 0000023C00004224E8FFBD271400BFAF1000B0AF218059000000018E000024240000198E09F8200321E000020000198E09F8200321E00002000002241000B08F1400BF8F0800E0031800BD27
363ELF-MIPSEL-NEXT: - Name: .rel.text
364ELF-MIPSEL-NEXT: Type: SHT_REL
365ELF-MIPSEL-NEXT: Link: .symtab
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000366ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
Simon Atanasyance538c72014-05-29 11:05:31 +0000367ELF-MIPSEL-NEXT: Info: .text
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000368ELF-MIPSEL-NEXT: Relocations:
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000369ELF-MIPSEL-NEXT: - Offset: 0x0000000000000000
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000370ELF-MIPSEL-NEXT: Symbol: _gp_disp
371ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000372ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000373ELF-MIPSEL-NEXT: Symbol: _gp_disp
374ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000375ELF-MIPSEL-NEXT: - Offset: 0x0000000000000018
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000376ELF-MIPSEL-NEXT: Symbol: '$.str'
377ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000378ELF-MIPSEL-NEXT: - Offset: 0x000000000000001C
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000379ELF-MIPSEL-NEXT: Symbol: '$.str'
380ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000381ELF-MIPSEL-NEXT: - Offset: 0x0000000000000020
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000382ELF-MIPSEL-NEXT: Symbol: puts
383ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000384ELF-MIPSEL-NEXT: - Offset: 0x000000000000002C
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000385ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
386ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000387ELF-MIPSEL-NEXT: - Name: .data
388ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
389ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000390ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
391ELF-MIPSEL-NEXT: Content: ''
392ELF-MIPSEL-NEXT: - Name: .bss
393ELF-MIPSEL-NEXT: Type: SHT_NOBITS
394ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000395ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
Simon Atanasyanafc03402015-07-03 23:00:54 +0000396ELF-MIPSEL-NEXT: Size: 0x0000000000000004
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000397ELF-MIPSEL-NEXT: - Name: .mdebug.abi32
398ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
399ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000400ELF-MIPSEL-NEXT: Content: ''
401ELF-MIPSEL-NEXT: - Name: .rodata.str1.1
402ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
403ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000404ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
405ELF-MIPSEL-NEXT: Content: 48656C6C6F20576F726C640A00
406ELF-MIPSEL-NEXT: - Name: .reginfo
407ELF-MIPSEL-NEXT: Type: SHT_MIPS_REGINFO
408ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000409ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
410ELF-MIPSEL-NEXT: Content: '000000000000000000000000000000000000000000000000'
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000411ELF-MIPSEL-NEXT: - Name: .MIPS.abiflags
412ELF-MIPSEL-NEXT: Type: SHT_MIPS_ABIFLAGS
413ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
414ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000008
Simon Atanasyanbd58bdb2015-05-07 15:40:48 +0000415ELF-MIPSEL-NEXT: ISA: MIPS32
416ELF-MIPSEL-NEXT: ISARevision: 0x01
417ELF-MIPSEL-NEXT: FpABI: FP_DOUBLE
418ELF-MIPSEL-NEXT: GPRSize: REG_32
419ELF-MIPSEL-NEXT: CPR1Size: REG_32
420ELF-MIPSEL-NEXT: Flags1: [ ODDSPREG ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000421ELF-MIPSEL-NEXT: Symbols:
422ELF-MIPSEL-NEXT: Local:
423ELF-MIPSEL-NEXT: - Name: trivial.ll
424ELF-MIPSEL-NEXT: Type: STT_FILE
425ELF-MIPSEL-NEXT: - Name: '$.str'
426ELF-MIPSEL-NEXT: Type: STT_OBJECT
427ELF-MIPSEL-NEXT: Section: .rodata.str1.1
428ELF-MIPSEL-NEXT: Size: 0x000000000000000D
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000429ELF-MIPSEL-NEXT: - Name: .text
430ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000431ELF-MIPSEL-NEXT: Section: .text
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000432ELF-MIPSEL-NEXT: - Name: .data
433ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000434ELF-MIPSEL-NEXT: Section: .data
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000435ELF-MIPSEL-NEXT: - Name: .bss
436ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000437ELF-MIPSEL-NEXT: Section: .bss
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000438ELF-MIPSEL-NEXT: - Name: .mdebug.abi32
439ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000440ELF-MIPSEL-NEXT: Section: .mdebug.abi32
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000441ELF-MIPSEL-NEXT: - Name: .rodata.str1.1
442ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000443ELF-MIPSEL-NEXT: Section: .rodata.str1.1
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000444ELF-MIPSEL-NEXT: - Name: .reginfo
445ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000446ELF-MIPSEL-NEXT: Section: .reginfo
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000447ELF-MIPSEL-NEXT: - Name: .MIPS.abiflags
448ELF-MIPSEL-NEXT: Type: STT_SECTION
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000449ELF-MIPSEL-NEXT: Section: .MIPS.abiflags
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000450ELF-MIPSEL-NEXT: Global:
451ELF-MIPSEL-NEXT: - Name: main
452ELF-MIPSEL-NEXT: Type: STT_FUNC
453ELF-MIPSEL-NEXT: Section: .text
454ELF-MIPSEL-NEXT: Size: 0x000000000000004C
Simon Atanasyanb2b56ed2014-07-13 15:28:54 +0000455ELF-MIPSEL-NEXT: - Name: var
456ELF-MIPSEL-NEXT: Type: STT_OBJECT
457ELF-MIPSEL-NEXT: Section: .bss
458ELF-MIPSEL-NEXT: Size: 0x0000000000000004
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000459ELF-MIPSEL-NEXT: - Name: SomeOtherFunction
460ELF-MIPSEL-NEXT: - Name: _gp_disp
461ELF-MIPSEL-NEXT: - Name: puts
462
463ELF-MIPS64EL: FileHeader:
464ELF-MIPS64EL-NEXT: Class: ELFCLASS64
465ELF-MIPS64EL-NEXT: Data: ELFDATA2LSB
466ELF-MIPS64EL-NEXT: Type: ET_REL
467ELF-MIPS64EL-NEXT: Machine: EM_MIPS
Simon Atanasyan84a0dc32014-05-23 08:07:09 +0000468ELF-MIPS64EL-NEXT: Flags: [ EF_MIPS_ARCH_3 ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000469ELF-MIPS64EL-NEXT: Sections:
470ELF-MIPS64EL-NEXT: - Name: .text
471ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
472ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000473ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
474ELF-MIPS64EL-NEXT: Content: ''
475ELF-MIPS64EL-NEXT: - Name: .data
476ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
477ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000478ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
479ELF-MIPS64EL-NEXT: Content: '00000000000000000000000000000000'
480ELF-MIPS64EL-NEXT: - Name: .rela.data
481ELF-MIPS64EL-NEXT: Type: SHT_RELA
482ELF-MIPS64EL-NEXT: Link: .symtab
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000483ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
Simon Atanasyance538c72014-05-29 11:05:31 +0000484ELF-MIPS64EL-NEXT: Info: .data
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000485ELF-MIPS64EL-NEXT: Relocations:
486ELF-MIPS64EL-NEXT: - Offset: 0
487ELF-MIPS64EL-NEXT: Symbol: zed
488ELF-MIPS64EL-NEXT: Type: R_MIPS_64
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000489ELF-MIPS64EL-NEXT: - Name: .bss
490ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
491ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000492ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000493ELF-MIPS64EL-NEXT: - Name: .MIPS.options
494ELF-MIPS64EL-NEXT: Type: SHT_MIPS_OPTIONS
Simon Atanasyan8ae8a5e2016-01-20 19:15:18 +0000495ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_MIPS_NOSTRIP ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000496ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
497ELF-MIPS64EL-NEXT: Content: '01280000000000000000000000000000000000000000000000000000000000000000000000000000'
498ELF-MIPS64EL-NEXT: - Name: .pdr
499ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000500ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000004
501ELF-MIPS64EL-NEXT: Content: ''
502ELF-MIPS64EL-NEXT: Symbols:
503ELF-MIPS64EL-NEXT: Local:
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000504ELF-MIPS64EL-NEXT: - Name: .text
505ELF-MIPS64EL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000506ELF-MIPS64EL-NEXT: Section: .text
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000507ELF-MIPS64EL-NEXT: - Name: .data
508ELF-MIPS64EL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000509ELF-MIPS64EL-NEXT: Section: .data
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000510ELF-MIPS64EL-NEXT: - Name: .bss
511ELF-MIPS64EL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000512ELF-MIPS64EL-NEXT: Section: .bss
513ELF-MIPS64EL-NEXT: - Name: bar
514ELF-MIPS64EL-NEXT: Section: .data
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000515ELF-MIPS64EL-NEXT: - Name: .MIPS.options
516ELF-MIPS64EL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000517ELF-MIPS64EL-NEXT: Section: .MIPS.options
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000518ELF-MIPS64EL-NEXT: - Name: .pdr
519ELF-MIPS64EL-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000520ELF-MIPS64EL-NEXT: Section: .pdr
521ELF-MIPS64EL-NEXT: Global:
522ELF-MIPS64EL-NEXT: - Name: zed
523
524ELF-X86-64: FileHeader:
525ELF-X86-64-NEXT: Class: ELFCLASS64
526ELF-X86-64-NEXT: Data: ELFDATA2LSB
527ELF-X86-64-NEXT: OSABI: ELFOSABI_GNU
528ELF-X86-64-NEXT: Type: ET_REL
529ELF-X86-64-NEXT: Machine: EM_X86_64
530ELF-X86-64-NEXT: Sections:
531ELF-X86-64-NEXT: - Name: .text
532ELF-X86-64-NEXT: Type: SHT_PROGBITS
533ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000534ELF-X86-64-NEXT: AddressAlign: 0x0000000000000010
535ELF-X86-64-NEXT: Content: 4883EC08C744240400000000BF00000000E80000000030C0E8000000008B4424044883C408C3
536ELF-X86-64-NEXT: - Name: .rodata.str1.1
537ELF-X86-64-NEXT: Type: SHT_PROGBITS
538ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
539ELF-X86-64-NEXT: Address: 0x0000000000000026
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000540ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
541ELF-X86-64-NEXT: Content: 48656C6C6F20576F726C642100
542ELF-X86-64-NEXT: - Name: .note.GNU-stack
543ELF-X86-64-NEXT: Type: SHT_PROGBITS
544ELF-X86-64-NEXT: Address: 0x0000000000000033
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000545ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
546ELF-X86-64-NEXT: Content: ''
547ELF-X86-64-NEXT: - Name: .rela.text
548ELF-X86-64-NEXT: Type: SHT_RELA
549ELF-X86-64-NEXT: Address: 0x0000000000000038
550ELF-X86-64-NEXT: Link: .symtab
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000551ELF-X86-64-NEXT: AddressAlign: 0x0000000000000008
Simon Atanasyance538c72014-05-29 11:05:31 +0000552ELF-X86-64-NEXT: Info: .text
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000553ELF-X86-64-NEXT: Relocations:
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000554ELF-X86-64-NEXT: - Offset: 0x000000000000000D
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000555ELF-X86-64-NEXT: Symbol: .rodata.str1.1
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000556ELF-X86-64-NEXT: Type: R_X86_64_32S
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000557ELF-X86-64-NEXT: - Offset: 0x0000000000000012
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000558ELF-X86-64-NEXT: Symbol: puts
559ELF-X86-64-NEXT: Type: R_X86_64_PC32
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000560ELF-X86-64-NEXT: Addend: -4
561ELF-X86-64-NEXT: - Offset: 0x0000000000000019
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000562ELF-X86-64-NEXT: Symbol: SomeOtherFunction
563ELF-X86-64-NEXT: Type: R_X86_64_PC32
Simon Atanasyan1564bf72014-05-15 18:04:09 +0000564ELF-X86-64-NEXT: Addend: -4
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000565ELF-X86-64-NEXT: Symbols:
566ELF-X86-64-NEXT: Local:
567ELF-X86-64-NEXT: - Name: trivial-object-test.s
568ELF-X86-64-NEXT: Type: STT_FILE
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000569ELF-X86-64-NEXT: - Name: .text
570ELF-X86-64-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000571ELF-X86-64-NEXT: Section: .text
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000572ELF-X86-64-NEXT: - Name: .rodata.str1.1
573ELF-X86-64-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000574ELF-X86-64-NEXT: Section: .rodata.str1.1
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000575ELF-X86-64-NEXT: - Name: .note.GNU-stack
576ELF-X86-64-NEXT: Type: STT_SECTION
Simon Atanasyanb8236e52014-05-14 05:07:47 +0000577ELF-X86-64-NEXT: Section: .note.GNU-stack
578ELF-X86-64-NEXT: Global:
579ELF-X86-64-NEXT: - Name: main
580ELF-X86-64-NEXT: Type: STT_FUNC
581ELF-X86-64-NEXT: Section: .text
582ELF-X86-64-NEXT: Size: 0x0000000000000026
583ELF-X86-64-NEXT: - Name: SomeOtherFunction
584ELF-X86-64-NEXT: - Name: puts
Simon Atanasyandafce2c2014-07-12 18:25:08 +0000585
Dylan McKaybd1e9792015-10-23 06:05:55 +0000586
Sam Clegg3ba65662017-07-10 20:43:26 +0000587ELF-AVR: FileHeader:
Dylan McKaybd1e9792015-10-23 06:05:55 +0000588ELF-AVR-NEXT: Class: ELFCLASS32
589ELF-AVR-NEXT: Data: ELFDATA2LSB
590ELF-AVR-NEXT: Type: ET_EXEC
591ELF-AVR-NEXT: Machine: EM_AVR
592ELF-AVR-NEXT: Flags: [ EF_AVR_ARCH_AVR2 ]
Sam Clegg3ba65662017-07-10 20:43:26 +0000593ELF-AVR-NEXT: Sections:
Dylan McKaybd1e9792015-10-23 06:05:55 +0000594ELF-AVR-NEXT: - Name: .text
595ELF-AVR-NEXT: Type: SHT_PROGBITS
596ELF-AVR-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
597ELF-AVR-NEXT: AddressAlign: 0x0000000000000002
598ELF-AVR-NEXT: Content: C20E0895
599ELF-AVR-NEXT: - Name: .data
600ELF-AVR-NEXT: Type: SHT_PROGBITS
601ELF-AVR-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
602ELF-AVR-NEXT: Address: 0x0000000000800060
603ELF-AVR-NEXT: AddressAlign: 0x0000000000000001
604ELF-AVR-NEXT: Content: ''
Sam Clegg3ba65662017-07-10 20:43:26 +0000605ELF-AVR-NEXT: Symbols:
606ELF-AVR-NEXT: Local:
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000607ELF-AVR-NEXT: - Name: .text
608ELF-AVR-NEXT: Type: STT_SECTION
Dylan McKaybd1e9792015-10-23 06:05:55 +0000609ELF-AVR-NEXT: Section: .text
Rafael Espindolaaee6db72017-09-06 00:57:53 +0000610ELF-AVR-NEXT: - Name: .data
611ELF-AVR-NEXT: Type: STT_SECTION
Dylan McKaybd1e9792015-10-23 06:05:55 +0000612ELF-AVR-NEXT: Section: .data
613ELF-AVR-NEXT: Value: 0x0000000000800060
614ELF-AVR-NEXT: - Name: a.o
615ELF-AVR-NEXT: Type: STT_FILE
616ELF-AVR-NEXT: - Name: main
617ELF-AVR-NEXT: Section: .text
Sam Clegg3ba65662017-07-10 20:43:26 +0000618ELF-AVR-NEXT: Global:
Dylan McKaybd1e9792015-10-23 06:05:55 +0000619ELF-AVR-NEXT: - Name: __trampolines_start
620ELF-AVR-NEXT: Section: .text
621ELF-AVR-NEXT: - Name: _etext
622ELF-AVR-NEXT: Section: .text
623ELF-AVR-NEXT: Value: 0x0000000000000004
624ELF-AVR-NEXT: - Name: __data_load_end
625ELF-AVR-NEXT: Value: 0x0000000000000004
626ELF-AVR-NEXT: - Name: __trampolines_end
627ELF-AVR-NEXT: Section: .text
628ELF-AVR-NEXT: - Name: __data_load_start
629ELF-AVR-NEXT: Value: 0x0000000000000004
630ELF-AVR-NEXT: - Name: __dtors_end
631ELF-AVR-NEXT: Section: .text
632ELF-AVR-NEXT: - Name: __eeprom_end
633ELF-AVR-NEXT: Section: .data
634ELF-AVR-NEXT: Value: 0x0000000000810000
635ELF-AVR-NEXT: - Name: __ctors_start
636ELF-AVR-NEXT: Section: .text
637ELF-AVR-NEXT: - Name: __dtors_start
638ELF-AVR-NEXT: Section: .text
639ELF-AVR-NEXT: - Name: __ctors_end
640ELF-AVR-NEXT: Section: .text
641ELF-AVR-NEXT: - Name: _edata
642ELF-AVR-NEXT: Section: .data
643ELF-AVR-NEXT: Value: 0x0000000000800060
644ELF-AVR-NEXT: - Name: _end
645ELF-AVR-NEXT: Section: .data
646ELF-AVR-NEXT: Value: 0x0000000000800060
647
Sam Cleggd5784792018-02-23 05:08:34 +0000648
Sam Clegg3ba65662017-07-10 20:43:26 +0000649WASM: --- !WASM
650WASM-NEXT: FileHeader:
651WASM-NEXT: Version: 0x00000001
Sam Cleggd5784792018-02-23 05:08:34 +0000652WASM: - Type: CUSTOM
653WASM-NEXT: Name: linking
Sam Clegg29aeb332019-01-16 01:34:48 +0000654WASM-NEXT: Version: 2
Sam Cleggd5784792018-02-23 05:08:34 +0000655WASM-NEXT: SymbolTable:
656WASM-NEXT: - Index: 0
657WASM-NEXT: Kind: FUNCTION
Nicholas Wilson2d7ecce2018-03-01 15:55:59 +0000658WASM-NEXT: Name: main
659WASM-NEXT: Flags: [ ]
660WASM-NEXT: Function: 2
Sam Cleggd5784792018-02-23 05:08:34 +0000661WASM-NEXT: - Index: 1
Sam Cleggd5784792018-02-23 05:08:34 +0000662WASM-NEXT: Kind: DATA
663WASM-NEXT: Name: .L.str
664WASM-NEXT: Flags: [ BINDING_LOCAL ]
665WASM-NEXT: Segment: 0
Nicholas Wilson2d7ecce2018-03-01 15:55:59 +0000666WASM-NEXT: Size: 13
667WASM-NEXT: - Index: 2
668WASM: Name: puts
669WASM: - Index: 3
Heejin Ahn7fe05792018-11-07 02:26:03 +0000670WASM: Name: .LSomeOtherFunction_bitcast
Nicholas Wilson2d7ecce2018-03-01 15:55:59 +0000671WASM: - Index: 4
Heejin Ahn7fe05792018-11-07 02:26:03 +0000672WASM: Name: SomeOtherFunction
673WASM: - Index: 5
Sam Cleggd5784792018-02-23 05:08:34 +0000674WASM: Name: var
675WASM: SegmentInfo:
676WASM-NEXT: - Index: 0
677WASM-NEXT: Name: .rodata..L.str
Sam Clegg29aeb332019-01-16 01:34:48 +0000678WASM-NEXT: Alignment: 0
Sam Cleggd5784792018-02-23 05:08:34 +0000679WASM-NEXT: Flags: [ ]
680WASM-NEXT: - Index: 1
681WASM: ...
682
Dylan McKaybd1e9792015-10-23 06:05:55 +0000683
Simon Atanasyandafce2c2014-07-12 18:25:08 +0000684ELF-X86-64-UNWIND: - Name: .eh_frame
685ELF-X86-64-UNWIND-NEXT: Type: SHT_X86_64_UNWIND
686ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ]
687ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001
688ELF-X86-64-UNWIND-NEXT: Content: ''
Davide Italianoe986a9d2015-09-19 20:49:34 +0000689
Davide Italianod58f92c2015-09-19 20:52:47 +0000690RUN: not obj2yaml %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
Sam Cleggb856c162017-06-16 23:29:54 +0000691ENOENT: Error reading file: {{.*}}.blah: {{[Nn]}}o such file or directory