brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · df38f8f Raw
43 lines · plain
1## Test some relocation types for REL format.2# RUN: yaml2obj -DMACHINE=AARCH64 -DR0=R_AARCH64_ABS64 -DR1=R_AARCH64_PREL32 -DR2=R_AARCH64_PREL64 %s -o %t.o3# RUN: ld.lld %t.o -o /dev/null4# RUN: yaml2obj -DMACHINE=PPC -DBITS=32 -DR0=R_PPC_ADDR32 -DR1=R_PPC_REL32 %s -o %t.o5# RUN: ld.lld %t.o -o /dev/null6# RUN: yaml2obj -DMACHINE=PPC64 -DR0=R_PPC64_ADDR64 -DR1=R_PPC64_REL32 -DR2=R_PPC64_REL64 %s -o %t.o7# RUN: ld.lld %t.o -o /dev/null8 9--- !ELF10FileHeader:11  Class:   ELFCLASS[[BITS=64]]12  Data:    ELFDATA2LSB13  Type:    ET_REL14  Machine: EM_[[MACHINE]]15Sections:16  - Name:  .text17    Type:  SHT_PROGBITS18    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]19    Size:  2420  - Name:  .data21    Type:  SHT_PROGBITS22    Flags: [ SHF_WRITE, SHF_ALLOC ]23  - Name:  .rel.text24    Type:  SHT_REL25    Info:  .text26    Relocations:27      - Symbol: .data28        Type:   [[R0]]29      - Offset: 830        Symbol: .data31        Type:   [[R1=0]]32      - Offset: 1633        Symbol: .data34        Type:   [[R2=0]]35Symbols:36  - Name:    .data37    Type:    STT_SECTION38    Section: .data39  - Name:    _start40    Section: .text41    Binding: STB_GLOBAL42...43