33 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy -R .note -O binary %t %t23# RUN: od -Ax -t x1 %t2 | FileCheck %s4 5!ELF6FileHeader:7 Class: ELFCLASS648 Data: ELFDATA2LSB9 Type: ET_EXEC10 Machine: EM_X86_6411Sections:12 - Name: .note13 Type: SHT_PROGBITS14 Flags: [ SHF_ALLOC ]15 Address: 0x100016 AddressAlign: 0x100017 Content: "32323232"18 Size: 3219 - Name: .rodata20 Flags: [ SHF_ALLOC ]21 Type: SHT_PROGBITS22 Address: 0x102023 Size: 406424 Content: "DEADBEEF"25ProgramHeaders:26 - Type: PT_LOAD27 Flags: [ PF_R ]28 VAddr: 0x100029 FirstSec: .note30 LastSec: .rodata31 32# CHECK: 000000 de ad be ef33