aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/pcrel-reloc.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/pcrel-reloc.s')
-rw-r--r--ld/testsuite/ld-riscv-elf/pcrel-reloc.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/pcrel-reloc.s b/ld/testsuite/ld-riscv-elf/pcrel-reloc.s
new file mode 100644
index 0000000..db2103b
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/pcrel-reloc.s
@@ -0,0 +1,5 @@
+.text
+.global _start
+_start:
+ auipc t0, %pcrel_hi(sym)
+ lw t0, %pcrel_lo(_start)(t0)