45 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy -R .text3 -O binary %t %t23# RUN: od -Ax -v -t x1 %t2 | FileCheck %s4# RUN: wc -c %t2 | FileCheck %s --check-prefix=SIZE5 6!ELF7FileHeader:8 Class: ELFCLASS649 Data: ELFDATA2LSB10 Type: ET_EXEC11 Machine: EM_X86_6412Sections:13 - Name: .text14 Type: SHT_PROGBITS15 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]16 Address: 0x100017 AddressAlign: 0x100018 Content: "c3c3c3c3"19 Size: 0x100020 - Name: .text221 Type: SHT_PROGBITS22 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]23 Address: 0x200024 AddressAlign: 0x100025 Content: "DEADBEEF"26 Size: 0x100027 - Name: .text328 Type: SHT_PROGBITS29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]30 Address: 0x300031 AddressAlign: 0x100032 Content: "32323232"33 Size: 0x100034ProgramHeaders:35 - Type: PT_LOAD36 Flags: [ PF_R ]37 VAddr: 0x100038 FirstSec: .text39 LastSec: .text340 41# CHECK: 000000 c3 c3 c3 c342# CHECK: 001000 de ad be ef43 44# SIZE: 819245