summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/emit-relocs-local-addend-foo.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/emit-relocs-local-addend-foo.s')
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-local-addend-foo.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-local-addend-foo.s b/ld/testsuite/ld-aarch64/emit-relocs-local-addend-foo.s
new file mode 100644
index 0000000..497eef7
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/emit-relocs-local-addend-foo.s
@@ -0,0 +1,20 @@
+ .cpu generic+fp+simd
+ .global a
+ .section .rodata
+ .align 3
+.LC0:
+ .string "foo"
+ .align 3
+ .type a, %object
+ .size a, 8
+a:
+ .xword .LC0
+ .text
+ .align 2
+ .global foo
+ .type foo, %function
+foo:
+ adrp x0, .LC0
+ add x0, x0, :lo12:.LC0
+ ret
+ .size foo, .-foo