]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-x86-64/gotpcrel1d.S
Add R_X86_64_[REX_]GOTPCRELX support to gas and ld
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / gotpcrel1d.S
1 .text
2 .globl bar
3 .type bar, @function
4 bar:
5 leaq __FUNCTION__.2215(%rip), %rdi
6 jmp *puts@GOTPCREL(%rip)
7 .size bar, .-bar
8 .globl plt
9 .type plt, @function
10 plt:
11 leaq __FUNCTION__.2219(%rip), %rdi
12 subq $8, %rsp
13 call *puts@GOTPCREL(%rip)
14 leaq __FUNCTION__.2219(%rip), %rdi
15 addq $8, %rsp
16 jmp *puts@GOTPCREL(%rip)
17 .size plt, .-plt
18 .section .rodata
19 .type __FUNCTION__.2219, @object
20 .size __FUNCTION__.2219, 4
21 __FUNCTION__.2219:
22 .string "plt"
23 .type __FUNCTION__.2215, @object
24 .size __FUNCTION__.2215, 4
25 __FUNCTION__.2215:
26 .string "bar"