Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / symboless-relocation.yaml
blob99f7af6109599de6b6533af2c86204c25d4f2baf
1 # Just make sure this isn't an error even though it has no Symbol
2 # RUN: yaml2obj %s
4 !ELF
5 FileHeader:
6   Class:           ELFCLASS64
7   Data:            ELFDATA2LSB
8   Type:            ET_EXEC
9   Machine:         EM_X86_64
10 Sections:
11   - Name:            .text
12     Type:            SHT_PROGBITS
13     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
14     Content:         "00000000"
15   - Name:            .rel.text
16     Type:            SHT_REL
17     Link:            .symtab
18     Info:            .text
19     Relocations:
20       - Offset: 0x1000
21         Type:   R_X86_64_RELATIVE