Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / section-ordering.yaml
blob5595f9379e99b42d1e4743c8df41b5cce86991a0
1 # Ensures that implicitly added sections can be ordered within Sections.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-readobj --sections %t | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_EXEC
10   Machine:         EM_X86_64
11 Sections:
12   - Name:            .text
13     Type:            SHT_PROGBITS
14     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
15   - Name:            .symtab
16     Type:            SHT_SYMTAB
17   - Name:            .data
18     Type:            SHT_PROGBITS
19     Flags:           [ SHF_ALLOC, SHF_WRITE ]
20   - Name:            .shstrtab
21     Type:            SHT_STRTAB
22   - Name:            .strtab
23     Type:            SHT_STRTAB
25 # CHECK: Name: .text
26 # CHECK: Name: .symtab
27 # CHECK: Name: .data
28 # CHECK: Name: .shstrtab
29 # CHECK: Name: .strtab