]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/section-symbols.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / section-symbols.test
1 # RUN: yaml2obj %s -o %t
2 # RUN: ld.lld -shared %t -o /dev/null
3
4 # Verify that lld can handle STT_SECTION symbols associated
5 # with SHT_REL[A]/SHT_SYMTAB/SHT_STRTAB sections.
6
7 !ELF
8 FileHeader:
9   Class:           ELFCLASS64
10   Data:            ELFDATA2LSB
11   OSABI:           ELFOSABI_FREEBSD
12   Type:            ET_REL
13   Machine:         EM_X86_64
14 Sections:
15   - Name:            .text
16     Type:            SHT_PROGBITS
17     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
18     AddressAlign:    0x0000000000000010
19     Content:         "00000000"
20   - Name:            .rela.text
21     Type:            SHT_RELA
22     Link:            .symtab
23     AddressAlign:    0x0000000000000008
24     Info:            .text
25     Relocations:
26 Symbols:
27   Local:
28     - Type:            STT_SECTION
29       Section:         .rela.text
30     - Type:            STT_SECTION
31       Section:         .shstrtab
32     - Type:            STT_SECTION
33       Section:         .symtab
34     - Type:            STT_SECTION
35       Section:         .strtab