blob: e49c82d85bdeeedb740f1deb955f455ef01f42eb [file] [log] [blame]
Dmitri Gribenkoa89e5a42019-10-10 14:26:54 +00001# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy -O binary %t %t2
Kai Nacke42b7cd52019-10-11 12:50:57 +00003# RUN: od -t x2 -v %t2 | FileCheck %s --ignore-case
Dmitri Gribenkoa89e5a42019-10-10 14:26:54 +00004# RUN: wc -c < %t2 | FileCheck %s --check-prefix=SIZE
5
6!ELF
7FileHeader:
8 Class: ELFCLASS64
9 Data: ELFDATA2LSB
10 Type: ET_EXEC
11 Machine: EM_X86_64
12Sections:
13 - Name: .text
14 Type: SHT_PROGBITS
15 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
16 AddressAlign: 0x0000000000001000
17 Content: "c3c3c3c3"
18ProgramHeaders:
19 - Type: PT_LOAD
20 Flags: [ PF_X, PF_R ]
21 Sections:
22 - Section: .text
23
24# CHECK: 0000000 c3c3 c3c3
25# SIZE: 4