1# Here we use yaml from ihex-elf-sections.yaml, but add single load 2# segment containing all exported sections. In such case we should 3# use physical address of a section intead of virtual address. Physical 4# addresses start from 0x100000, so we create two additional 'ExtenededAddr' 5# (03) record in the beginning of IHex file with that physical address 6!ELF 7FileHeader: 8 Class: ELFCLASS64 9 Data: ELFDATA2LSB 10 Type: ET_EXEC 11 Machine: EM_X86_64 12 Entry: 0x100000 13Sections: 14 - Name: .text 15 Type: SHT_PROGBITS 16 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 17 Address: 0x0 18 AddressAlign: 0x8 19 Content: "000102030405060708090A0B0C0D0E0F1011121314" 20 - Name: .data1 21 Type: SHT_PROGBITS 22 Flags: [ SHF_ALLOC ] 23 Content: "3031323334353637383940" 24 Address: 0xFFF8 25 AddressAlign: 0x8 26 - Name: .data2 27 Type: SHT_PROGBITS 28 Flags: [ SHF_ALLOC ] 29 Content: "40414243" 30 Address: 0x10100 31 AddressAlign: 0x8 32 - Name: .data3 33 Type: SHT_PROGBITS 34 Flags: [ SHF_ALLOC ] 35 Content: "5051525354555657585960" 36 Address: 0x10FFF8 37 AddressAlign: 0x8 38 - Name: .bss 39 Type: SHT_NOBITS 40 Flags: [ SHF_ALLOC ] 41 Address: 0x10100 42 Size: 0x1000 43 AddressAlign: 0x8 44 - Name: .dummy 45 Type: SHT_PROGBITS 46 Flags: [ ] 47 Address: 0x20FFF8 48 Size: 65536 49 AddressAlign: 0x8 50ProgramHeaders: 51 - Type: PT_LOAD 52 Flags: [ PF_X, PF_R ] 53 VAddr: 0xF00000000 54 PAddr: 0x100000 55 FirstSec: .text 56 LastSec: .bss 57