60 lines · yaml
1# RUN: yaml2obj -o %t.o %s2# RUN: llvm-jitlink -noexec -check=%s %t.o3#4# Check that R_X86_64_NONE relocations are handled without modifying the fixup5# location.6 7# jitlink-check: *{8}P = 428 9--- !ELF10FileHeader:11 Class: ELFCLASS6412 Data: ELFDATA2LSB13 Type: ET_REL14 Machine: EM_X86_6415 SectionHeaderStringTable: .strtab16Sections:17 - Name: .text18 Type: SHT_PROGBITS19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]20 AddressAlign: 0x421 - Name: .text.main22 Type: SHT_PROGBITS23 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]24 AddressAlign: 0x1025 Content: 31C0C326 - Name: .data27 Type: SHT_PROGBITS28 Flags: [ SHF_WRITE, SHF_ALLOC ]29 AddressAlign: 0x830 Content: '2A00000000000000'31 - Name: .rela.data32 Type: SHT_RELA33 Flags: [ SHF_INFO_LINK ]34 Link: .symtab35 AddressAlign: 0x836 Info: .data37 Relocations:38 - Symbol: P39 Type: R_X86_64_NONE40 - Type: SectionHeaderTable41 Sections:42 - Name: .strtab43 - Name: .text44 - Name: .text.main45 - Name: .data46 - Name: .rela.data47 - Name: .symtab48Symbols:49 - Name: main50 Type: STT_FUNC51 Section: .text.main52 Binding: STB_GLOBAL53 Size: 0x354 - Name: P55 Type: STT_OBJECT56 Section: .data57 Binding: STB_GLOBAL58 Size: 0x859...60