aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr20800a.S
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr20800a.S')
-rw-r--r--ld/testsuite/ld-x86-64/pr20800a.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr20800a.S b/ld/testsuite/ld-x86-64/pr20800a.S
new file mode 100644
index 0000000..c4bcd80
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr20800a.S
@@ -0,0 +1,17 @@
+ .text
+ .globl main
+ .type main, @function
+main:
+.L2:
+ leaq .L2(%rip), %rax
+ movabsq $_GLOBAL_OFFSET_TABLE_-.L2, %r11
+ movabsq $bar@PLTOFF, %rdx
+ pushq %r15
+ addq %r11, %rax
+ movq %rax, %r15
+ addq %rax, %rdx
+ call *%rdx
+ xorl %eax, %eax
+ popq %r15
+ ret
+ .size main, .-main