aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/reloc_le_with_shared.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/reloc_le_with_shared.d')
-rw-r--r--ld/testsuite/ld-loongarch-elf/reloc_le_with_shared.d6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/reloc_le_with_shared.d b/ld/testsuite/ld-loongarch-elf/reloc_le_with_shared.d
new file mode 100644
index 0000000..562b079
--- /dev/null
+++ b/ld/testsuite/ld-loongarch-elf/reloc_le_with_shared.d
@@ -0,0 +1,6 @@
+#source: reloc_le_with_shared.s
+#as:
+#ld: -shared
+#error: .*relocation R_LARCH_TLS_LE_HI20 against `s` can not be used when making a shared object; recompile with -fPIC
+#...
+#pass