1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-readobj --demangle -r %t.o 2>&1 | \
3 # RUN: FileCheck %s --check-prefix=LLVM --implicit-check-not=warning:
4 # RUN: llvm-readelf --demangle -r %t.o 2>&1 | \
5 # RUN: FileCheck %s --check-prefix=GNU --implicit-check-not=warning:
7 # GNU: Relocation section '.rela.plt' at offset {{.*}} contains 5 entries:
8 # GNU-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
9 # GNU-NEXT: 0000000000013018 0000000100000007 R_X86_64_JUMP_SLOT 0000000000000000 f1@v3 + 0
10 # GNU-NEXT: 0000000000013020 0000000200000007 R_X86_64_JUMP_SLOT 0000000000000000 f2@v2 + 0
11 # GNU-NEXT: 0000000000013028 0000000300000007 R_X86_64_JUMP_SLOT 0000000000000000 g1@v1 + 0
12 # GNU-NEXT: 0000000000013040 0000000400000007 R_X86_64_JUMP_SLOT 0000000000000000 f1()@v3 + 0
13 # GNU-NEXT: 0000000000013058 0000000500000007 R_X86_64_JUMP_SLOT 0000000000000000 f3 + 0
16 # LLVM-NEXT: Section (3) .rela.plt {
17 # LLVM-NEXT: 0x13018 R_X86_64_JUMP_SLOT f1@v3 0x0
18 # LLVM-NEXT: 0x13020 R_X86_64_JUMP_SLOT f2@v2 0x0
19 # LLVM-NEXT: 0x13028 R_X86_64_JUMP_SLOT g1@v1 0x0
20 # LLVM-NEXT: 0x13040 R_X86_64_JUMP_SLOT f1()@v3 0x0
21 # LLVM-NEXT: 0x13058 R_X86_64_JUMP_SLOT f3 0x0
35 Entries: [ 0, 2, 3, 4, 2, 1 ]
36 - Name: .gnu.version_r
39 AddressAlign: 0x0000000000000004
64 - Offset: 0x0000000000013018
66 Type: R_X86_64_JUMP_SLOT
67 - Offset: 0x0000000000013020
69 Type: R_X86_64_JUMP_SLOT
70 - Offset: 0x0000000000013028
72 Type: R_X86_64_JUMP_SLOT
73 - Offset: 0x0000000000013040
75 Type: R_X86_64_JUMP_SLOT
76 - Offset: 0x0000000000013058
78 Type: R_X86_64_JUMP_SLOT