61 lines · yaml
1!ELF2FileHeader:3 Class: ELFCLASS644 Data: ELFDATA2LSB5 Type: ET_EXEC6 Machine: EM_X86_647Sections:8 - Name: .text9# This section contents exceeds default IHex line length of 16 bytes10# so we expect two lines created for it.11 Type: SHT_PROGBITS12 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]13 Address: 0x014 AddressAlign: 0x815 Content: "000102030405060708090A0B0C0D0E0F1011121314"16 - Name: .data17# This section overlap 16-bit segment boundary, so we expect18# additional 'SegmentAddr' record of type '02'19 Type: SHT_PROGBITS20 Flags: [ SHF_ALLOC ]21 Content: "3031323334353637383940"22 Address: 0xFFF823 AddressAlign: 0x824 - Name: .data225# Previous section '.data' should have forced creation of26# 'SegmentAddr'(02) record with segment address of 0x10000,27# so this section should have address of 0x100.28 Type: SHT_PROGBITS29 Flags: [ SHF_ALLOC ]30 Content: "40414243"31 Address: 0x1010032 AddressAlign: 0x833 - Name: .data334# The last section not only overlaps segment boundary, but35# also has linear address which doesn't fit 20 bits. The 36# following records should be created:37# 'SegmentAddr'(02) record with address 0x038# 'ExtendedAddr'(04) record with address 0x10000039# 'Data'(00) record with 8 bytes of section data40# 'SegmentAddr'(02) record with address 0x1000041# 'Data'(00) record with remaining 3 bytes of data.42 Type: SHT_PROGBITS43 Flags: [ SHF_ALLOC ]44 Content: "5051525354555657585960"45 Address: 0x10FFF846 AddressAlign: 0x847 - Name: .bss48# NOBITS sections are not written to IHex49 Type: SHT_NOBITS50 Flags: [ SHF_ALLOC ]51 Address: 0x1010052 Size: 0x100053 AddressAlign: 0x854 - Name: .dummy55# Non-allocatable sections are not written to IHex56 Type: SHT_PROGBITS57 Flags: [ ]58 Address: 0x20FFF859 Size: 6553660 AddressAlign: 0x861