aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/copyreloc-main.S
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/copyreloc-main.S')
-rw-r--r--ld/testsuite/ld-x86-64/copyreloc-main.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/copyreloc-main.S b/ld/testsuite/ld-x86-64/copyreloc-main.S
new file mode 100644
index 0000000..cc17f0e
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/copyreloc-main.S
@@ -0,0 +1,15 @@
+ .section .text.startup,"ax",@progbits
+ .p2align 4,,15
+ .globl main
+ .type main, @function
+main:
+.LFB0:
+ .cfi_startproc
+ xorl %eax, %eax
+ cmpl $2, a_glob(%rip)
+ setne %al
+ ret
+ .cfi_endproc
+.LFE0:
+ .size main, .-main
+ .section .note.GNU-stack,"",@progbits