brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · f9a53ee Raw
62 lines · yaml
1# Here we use yaml from ihex-elf-sections.yaml, but add single load2# segment containing all exported sections. In such case we should 3# use physical address of a section instead of virtual address. Physical4# addresses start from 0x100000, so we create two additional 'ExtenededAddr'5# (03) record in the beginning of IHex file with that physical address6!ELF7FileHeader:8  Class:           ELFCLASS649  Data:            ELFDATA2LSB10  Type:            ET_EXEC11  Machine:         EM_X86_6412  Entry:           0x10000013Sections:14  - Name:            .text15    Type:            SHT_PROGBITS16    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]17    Address:         0x018    AddressAlign:    0x819    Content:         "000102030405060708090A0B0C0D0E0F1011121314"20  - Name:            .data121    Type:            SHT_PROGBITS22    Flags:           [ SHF_ALLOC ]23    Content:         "3031323334353637383940"24    Address:         0xFFF825    AddressAlign:    0x826  - Name:            .data227    Type:            SHT_PROGBITS28    Flags:           [ SHF_ALLOC ]29    Content:         "40414243"30    Address:         0x1010031    AddressAlign:    0x832  - Name:            .data333    Type:            SHT_PROGBITS34    Flags:           [ SHF_ALLOC ]35    Content:         "5051525354555657585960"36    Address:         0x10FFF837    AddressAlign:    0x838  - Name:            .bss39    Type:            SHT_NOBITS40    Flags:           [ SHF_ALLOC ]41    Address:         0x1010042    Size:            0x100043    AddressAlign:    0x844  - Name:            .dummy45    Type:            SHT_PROGBITS46    Flags:           [ SHF_ALLOC ]47    Address:         0x20FFF848    Size:            349    AddressAlign:    0x850  - Name:            .nonalloc51    Type:            SHT_PROGBITS52    Flags:           [ ]53    Address:         0x30000054    Size:            155ProgramHeaders:56  - Type:     PT_LOAD57    Flags:    [ PF_X, PF_R ]58    VAddr:    0xF0000000059    PAddr:    0x10000060    FirstSec: .text61    LastSec:  .bss62