summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/morello-dynamic-relocs.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/morello-dynamic-relocs.s')
-rw-r--r--ld/testsuite/ld-aarch64/morello-dynamic-relocs.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/morello-dynamic-relocs.s b/ld/testsuite/ld-aarch64/morello-dynamic-relocs.s
new file mode 100644
index 00000000000..6a4e862471b
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/morello-dynamic-relocs.s
@@ -0,0 +1,15 @@
+ .arch morello+crc+c64
+ .text
+ .align 2
+ .global _start
+ .type _start, %function
+_start:
+.LFB0:
+ .cfi_startproc purecap
+ adrp c0, :got:var
+ ldr c0, [c0, #:got_lo12:var]
+ str wzr, [c0]
+ ret
+ .cfi_endproc
+.LFE0:
+ .size _start, .-_start