aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr20800b.S
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr20800b.S')
-rw-r--r--ld/testsuite/ld-x86-64/pr20800b.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr20800b.S b/ld/testsuite/ld-x86-64/pr20800b.S
new file mode 100644
index 0000000..c4eeb4f
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr20800b.S
@@ -0,0 +1,21 @@
+ .section .rodata.str1.1,"aMS",@progbits,1
+.LC0:
+ .string "PASS\n"
+ .text
+ .globl bar
+ .type bar, @function
+bar:
+.L2:
+ leaq .L2(%rip), %rdx
+ movabsq $_GLOBAL_OFFSET_TABLE_-.L2, %r11
+ movabsq $.LC0@GOTOFF, %rax
+ pushq %r15
+ movabsq $printf@PLTOFF, %rcx
+ addq %r11, %rdx
+ popq %r15
+ leaq (%rdx,%rax), %rdi
+ addq %rdx, %rcx
+ xorl %eax, %eax
+ jmp *%rcx
+ .size bar, .-bar
+ .section .note.GNU-stack,"",@progbits