]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/relocation-dtrace.test
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / relocation-dtrace.test
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: ld.lld -shared %t.o -o %t.so
3
4 # Test that we can handle R_X86_64_NONE as produced by dtrace.
5
6 !ELF
7 FileHeader:
8   Class:           ELFCLASS64
9   Data:            ELFDATA2LSB
10   OSABI:           ELFOSABI_FREEBSD
11   Type:            ET_REL
12   Machine:         EM_X86_64
13 Sections:
14   - Name:            .text
15     Type:            SHT_PROGBITS
16     Flags:           [ SHF_ALLOC ]
17   - Name:            .rela.text
18     Type:            SHT_RELA
19     Link:            .symtab
20     Info:            .text
21     Relocations:
22       - Offset:          0x0000000000000000
23         Symbol:          ''
24         Type:            R_X86_64_NONE