summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/morello-dynamic-local-got.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/morello-dynamic-local-got.s')
-rw-r--r--ld/testsuite/ld-aarch64/morello-dynamic-local-got.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/morello-dynamic-local-got.s b/ld/testsuite/ld-aarch64/morello-dynamic-local-got.s
new file mode 100644
index 00000000000..e846bb7422c
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/morello-dynamic-local-got.s
@@ -0,0 +1,23 @@
+ .text
+ .global x
+ .bss
+ .align 2
+ .type x, %object
+ .size x, 4
+x:
+ .zero 4
+ .text
+ .align 2
+ .global _start
+ .type _start, %function
+_start:
+.LFB0:
+ .cfi_startproc purecap
+ adrp c0, :got:x
+ ldr c0, [c0, #:got_lo12:x]
+ ldr w0, [c0]
+ ret
+ .cfi_endproc
+.LFE0:
+ .size _start, .-_start
+