]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-aarch64/morello-illegal-tls-shared.d
Add linker tests for TLS changes
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-illegal-tls-shared.d
diff --git a/ld/testsuite/ld-aarch64/morello-illegal-tls-shared.d b/ld/testsuite/ld-aarch64/morello-illegal-tls-shared.d
new file mode 100644 (file)
index 0000000..9034ed9
--- /dev/null
@@ -0,0 +1,10 @@
+# Check that TLS relocations with an addend are disallowed.
+#source: morello-illegal-tls.s
+#as: -march=morello+c64
+#ld: -shared
+#error: .*\(\.text.*\): relocation R_MORELLO_TLSIE_ADR_GOTTPREL_PAGE20 against `a' is disallowed with addend
+#error: .*\(\.text.*\): relocation R_MORELLO_TLSIE_ADD_LO12 against `a' is disallowed with addend
+#error: .*\(\.text.*\): relocation R_MORELLO_TLSDESC_ADR_PAGE20 against `a' is disallowed with addend
+#error: .*\(\.text.*\): relocation R_MORELLO_TLSDESC_LD128_LO12 against `a' is disallowed with addend
+#error: .*\(\.text.*\): relocation R_AARCH64_TLSDESC_ADD_LO12 against `a' is disallowed with addend
+#error: .*\(\.text.*\): relocation R_MORELLO_TLSDESC_CALL against `a' is disallowed with addend