summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/morello-static-got.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/morello-static-got.s')
-rw-r--r--ld/testsuite/ld-aarch64/morello-static-got.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/morello-static-got.s b/ld/testsuite/ld-aarch64/morello-static-got.s
new file mode 100644
index 00000000000..2a4e410bb46
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/morello-static-got.s
@@ -0,0 +1,12 @@
+.data
+val:
+ .byte 0x42
+ .byte 0x42
+ .byte 0x42
+ .size val, .-val
+
+.text
+.global _start
+_start:
+ ldr c0, [c0, :got_lo12:val]
+