aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d')
-rw-r--r--ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d b/ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d
new file mode 100644
index 0000000..5b2d1ea
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d
@@ -0,0 +1,4 @@
+#source: code-model.s
+#as: -march=rv64i -mabi=lp64 --defsym __medany__=1 --defsym __undefweak__=1
+#ld: -Tcode-model-01.ld -melf64lriscv --relax
+#error: .*relocation truncated to fit: R_RISCV_GOT_HI20 against undefined symbol `symbolW'