summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/weak-undefined.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/weak-undefined.s')
-rw-r--r--ld/testsuite/ld-aarch64/weak-undefined.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/weak-undefined.s b/ld/testsuite/ld-aarch64/weak-undefined.s
new file mode 100644
index 0000000..692798f
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/weak-undefined.s
@@ -0,0 +1,18 @@
+.text
+ .weak foo
+ .global main
+main:
+ b.ne foo
+ b.eq foo
+ b.cs foo
+ b.cc foo
+ b.gt foo
+ b.ge foo
+ b.lt foo
+ b.le foo
+ b foo
+ bl foo
+ ldr x0, foo
+ adr x0, foo
+ adrp x0, foo
+ add x0, x0, :lo12:foo