35 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: ld.lld -shared %t -o /dev/null3 4# Verify that lld can handle STT_SECTION symbols associated5# with SHT_REL[A]/SHT_SYMTAB/SHT_STRTAB sections.6 7!ELF8FileHeader:9 Class: ELFCLASS6410 Data: ELFDATA2LSB11 OSABI: ELFOSABI_FREEBSD12 Type: ET_REL13 Machine: EM_X86_6414Sections:15 - Name: .text16 Type: SHT_PROGBITS17 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]18 AddressAlign: 0x000000000000001019 Content: "00000000"20 - Name: .rela.text21 Type: SHT_RELA22 Link: .symtab23 AddressAlign: 0x000000000000000824 Info: .text25 Relocations:26Symbols:27 - Type: STT_SECTION28 Section: .rela.text29 - Type: STT_SECTION30 Section: .shstrtab31 - Type: STT_SECTION32 Section: .symtab33 - Type: STT_SECTION34 Section: .strtab35