brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 7053d20 Raw
59 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:            0x100034  - Name:            .text435    Type:            SHT_PROGBITS36    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]37    Address:         0x400038    AddressAlign:    0x100039    Content:         "FFFFFFFF"40    Size:            0x100041ProgramHeaders:42  - Type:     PT_LOAD43    Flags:    [ PF_R ]44    VAddr:    0x100045    FirstSec: .text46    LastSec:  .text247  - Type:     PT_LOAD48    Flags:    [ PF_R ]49    VAddr:    0x300050    FirstSec: .text351    LastSec:  .text452 53# CHECK: 000000 c3 c3 c3 c354# CHECK: 001000 de ad be ef55# CHECK: 002000 00 00 00 0056# CHECK: 003000 ff ff ff ff57 58# SIZE: 1638459