]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-aarch64/morello-illegal-size-relocs-pie.d
Add linker tests for TLS changes
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-illegal-size-relocs-pie.d
diff --git a/ld/testsuite/ld-aarch64/morello-illegal-size-relocs-pie.d b/ld/testsuite/ld-aarch64/morello-illegal-size-relocs-pie.d
new file mode 100644 (file)
index 0000000..2a15288
--- /dev/null
@@ -0,0 +1,18 @@
+# Checking that:
+#    1) Size relocation is disallowed on a symbol the static linker does not
+#       know about.
+#    2) Relocations against symbols with too large a symbol are caught.
+#source: morello-illegal-size-relocs.s
+#as: -march=morello+c64
+#ld: -pie
+#error: .*: in function `_start':
+#error: .*\(\.text.*\): relocation truncated to fit: R_MORELLO_MOVW_SIZE_G0 against symbol `sym2' defined in \.data section in .*
+#error: .*\(\.text.*\): relocation truncated to fit: R_MORELLO_MOVW_SIZE_G0 against symbol `sym3' defined in \.data section in .*
+#error: .*\(\.text.*\): relocation truncated to fit: R_MORELLO_MOVW_SIZE_G1 against symbol `sym3' defined in \.data section in .*
+#error: .*\(\.text.*\): relocation truncated to fit: R_MORELLO_MOVW_SIZE_G0 against symbol `sym4' defined in \.data section in .*
+#error: .*\(\.text.*\): relocation truncated to fit: R_MORELLO_MOVW_SIZE_G1 against symbol `sym4' defined in \.data section in .*
+#error: .*\(\.text.*\): relocation truncated to fit: R_MORELLO_MOVW_SIZE_G2 against symbol `sym4' defined in \.data section in .*
+#error: .*: relocation R_MORELLO_MOVW_SIZE_G0 against `sym1' is disallowed with addend
+#error: .*: relocation R_MORELLO_MOVW_SIZE_G0 against `\.data' is disallowed with addend
+#error: .* relocation R_MORELLO_MOVW_SIZE_G0 against `othersym' must be used against a non-interposable defined symbol
+#error: .* final link failed: bad value