Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objcopy / ELF / Inputs / ihex-elf-sections.yaml
blob8a534332a6525bcc49cd848600e71c25e0772ae0
1 !ELF
2 FileHeader:
3   Class:           ELFCLASS64
4   Data:            ELFDATA2LSB
5   Type:            ET_EXEC
6   Machine:         EM_X86_64
7 Sections:
8   - Name:            .text
9 # This section contents exceeds default IHex line length of 16 bytes
10 # so we expect two lines created for it.
11     Type:            SHT_PROGBITS
12     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
13     Address:         0x0
14     AddressAlign:    0x8
15     Content:         "000102030405060708090A0B0C0D0E0F1011121314"
16   - Name:            .data
17 # This section overlap 16-bit segment boundary, so we expect
18 # additional 'SegmentAddr' record of type '02'
19     Type:            SHT_PROGBITS
20     Flags:           [ SHF_ALLOC ]
21     Content:         "3031323334353637383940"
22     Address:         0xFFF8
23     AddressAlign:    0x8
24   - Name:            .data2
25 # Previous section '.data' should have forced creation of
26 # 'SegmentAddr'(02) record with segment address of 0x10000,
27 # so this section should have address of 0x100.
28     Type:            SHT_PROGBITS
29     Flags:           [ SHF_ALLOC ]
30     Content:         "40414243"
31     Address:         0x10100
32     AddressAlign:    0x8
33   - Name:            .data3
34 # The last section not only overlaps segment boundary, but
35 # also has linear address which doesn't fit 20 bits. The 
36 # following records should be created:
37 # 'SegmentAddr'(02) record with address 0x0
38 # 'ExtendedAddr'(04) record with address 0x100000
39 # 'Data'(00) record with 8 bytes of section data
40 # 'SegmentAddr'(02) record with address 0x10000
41 # 'Data'(00) record with remaining 3 bytes of data.
42     Type:            SHT_PROGBITS
43     Flags:           [ SHF_ALLOC ]
44     Content:         "5051525354555657585960"
45     Address:         0x10FFF8
46     AddressAlign:    0x8
47   - Name:            .bss
48 # NOBITS sections are not written to IHex
49     Type:            SHT_NOBITS
50     Flags:           [ SHF_ALLOC ]
51     Address:         0x10100
52     Size:            0x1000
53     AddressAlign:    0x8
54   - Name:            .dummy
55 # Non-allocatable sections are not written to IHex
56     Type:            SHT_PROGBITS
57     Flags:           [ ]
58     Address:         0x20FFF8
59     Size:            65536
60     AddressAlign:    0x8