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