aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d')
-rw-r--r--ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d b/ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d
new file mode 100644
index 0000000..7f5eaa3
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d
@@ -0,0 +1,5 @@
+#source: pcrel-reloc.s
+#source: pcrel-reloc-abs.s
+#as: -march=rv64i -mabi=lp64
+#ld: -melf64lriscv --pie --no-relax
+#error: .*relocation R_RISCV_PCREL_HI20 against absolute symbol `sym' can not be used when making a shared objec.*t