aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/gc-plt1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/gc-plt1.s')
-rw-r--r--ld/testsuite/ld-aarch64/gc-plt1.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/gc-plt1.s b/ld/testsuite/ld-aarch64/gc-plt1.s
new file mode 100644
index 0000000..b786353
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/gc-plt1.s
@@ -0,0 +1,9 @@
+plt_relocs:
+ adrp x0, :pg_hi21:var
+ ldr x0, [x0, :lo12:var]
+
+ adrp x1, :pg_hi21_nc:var
+ ldr x1, [x1, :lo12:var]
+
+ b bar
+ bl foo