1 # RUN: yaml2obj %s > %t.o
2 # RUN: llvm-readobj --demangle -r %t.o | FileCheck %s --check-prefix LLVM
3 # RUN: llvm-readelf --demangle -r %t.o | FileCheck %s --check-prefix GNU
5 # GNU: Relocation section '.rela.plt' at offset {{.*}} contains 5 entries:
6 # GNU-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
7 # GNU-NEXT: 0000000000013018 0000000100000007 R_X86_64_JUMP_SLOT 0000000000000000 f1@v3 + 0
8 # GNU-NEXT: 0000000000013020 0000000200000007 R_X86_64_JUMP_SLOT 0000000000000000 f2@v2 + 0
9 # GNU-NEXT: 0000000000013028 0000000300000007 R_X86_64_JUMP_SLOT 0000000000000000 g1@v1 + 0
10 # GNU-NEXT: 0000000000013040 0000000400000007 R_X86_64_JUMP_SLOT 0000000000000000 f1()@v3 + 0
11 # GNU-NEXT: 0000000000013058 0000000500000007 R_X86_64_JUMP_SLOT 0000000000000000 f3 + 0
14 # LLVM-NEXT: Section (3) .rela.plt {
15 # LLVM-NEXT: 0x13018 R_X86_64_JUMP_SLOT f1@v3 0x0
16 # LLVM-NEXT: 0x13020 R_X86_64_JUMP_SLOT f2@v2 0x0
17 # LLVM-NEXT: 0x13028 R_X86_64_JUMP_SLOT g1@v1 0x0
18 # LLVM-NEXT: 0x13040 R_X86_64_JUMP_SLOT f1()@v3 0x0
19 # LLVM-NEXT: 0x13058 R_X86_64_JUMP_SLOT f3 0x0
29 Entry: 0x0000000000000000
35 AddressAlign: 0x0000000000000002
36 EntSize: 0x0000000000000002
37 Entries: [ 0, 2, 3, 4, 2 ]
38 - Name: .gnu.version_r
42 AddressAlign: 0x0000000000000004
43 Info: 0x0000000000000002
68 AddressAlign: 0x0000000000000008
69 EntSize: 0x0000000000000018
71 - Offset: 0x0000000000013018
73 Type: R_X86_64_JUMP_SLOT
74 - Offset: 0x0000000000013020
76 Type: R_X86_64_JUMP_SLOT
77 - Offset: 0x0000000000013028
79 Type: R_X86_64_JUMP_SLOT
80 - Offset: 0x0000000000013040
82 Type: R_X86_64_JUMP_SLOT
83 - Offset: 0x0000000000013058
85 Type: R_X86_64_JUMP_SLOT