1# RUN: yaml2obj %s -o %t 2# RUN: llvm-objcopy -O binary %t %t2 3# RUN: od -t x1 %t2 | FileCheck %s --ignore-case 4 5!ELF 6FileHeader: 7 Class: ELFCLASS64 8 Data: ELFDATA2LSB 9 Type: ET_EXEC 10 Machine: EM_X86_64 11Sections: 12 - Name: .text 13 Type: SHT_PROGBITS 14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 15 Address: 0x1000 16 AddressAlign: 0x0000000000001000 17 Content: "c3c3c3c3" 18 - Name: .data 19 Type: SHT_PROGBITS 20 Flags: [ SHF_ALLOC ] 21 Address: 0x1008 22 AddressAlign: 0x0000000000000008 23 Content: "3232" 24ProgramHeaders: 25 - Type: PT_LOAD 26 Flags: [ PF_X, PF_R ] 27 VAddr: 0x1000 28 Align: 0x1000 29 FirstSec: .text 30 LastSec: .text 31 - Type: PT_LOAD 32 Flags: [ PF_R, PF_W ] 33 VAddr: 0x1008 34 Align: 0x1000 35 FirstSec: .data 36 LastSec: .data 37 38# CHECK: 0000000 c3 c3 c3 c3 00 00 00 00 32 32 39