aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/gotpcrel1d.S
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/gotpcrel1d.S')
-rw-r--r--ld/testsuite/ld-x86-64/gotpcrel1d.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/gotpcrel1d.S b/ld/testsuite/ld-x86-64/gotpcrel1d.S
new file mode 100644
index 0000000..4b01499
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/gotpcrel1d.S
@@ -0,0 +1,26 @@
+ .text
+ .globl bar
+ .type bar, @function
+bar:
+ leaq __FUNCTION__.2215(%rip), %rdi
+ jmp *puts@GOTPCREL(%rip)
+ .size bar, .-bar
+ .globl plt
+ .type plt, @function
+plt:
+ leaq __FUNCTION__.2219(%rip), %rdi
+ subq $8, %rsp
+ call *puts@GOTPCREL(%rip)
+ leaq __FUNCTION__.2219(%rip), %rdi
+ addq $8, %rsp
+ jmp *puts@GOTPCREL(%rip)
+ .size plt, .-plt
+ .section .rodata
+ .type __FUNCTION__.2219, @object
+ .size __FUNCTION__.2219, 4
+__FUNCTION__.2219:
+ .string "plt"
+ .type __FUNCTION__.2215, @object
+ .size __FUNCTION__.2215, 4
+__FUNCTION__.2215:
+ .string "bar"