Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / section-link.yaml
blob556e8dd6fec543769b1370662e8a786e81910d9d
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections %t | FileCheck %s
4 # CHECK:      Name: .text
5 # CHECK-NEXT: Type: SHT_PROGBITS
6 # CHECK-NEXT: Flags [
7 # CHECK-NEXT:   SHF_ALLOC
8 # CHECK-NEXT:   SHF_EXECINSTR
9 # CHECK-NEXT: ]
10 # CHECK-NEXT: Address:
11 # CHECK-NEXT: Offset:
12 # CHECK-NEXT: Size:
13 # CHECK-NEXT: Link: 12345
15 --- !ELF
16 FileHeader:
17   Class:           ELFCLASS64
18   Data:            ELFDATA2LSB
19   Type:            ET_REL
20   Machine:         EM_X86_64
21 Sections:
22   - Name:            .text
23     Type:            SHT_PROGBITS
24     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
25     Link:            12345