aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2020-07-14 18:33:11 +0100
committerNick Alcock <nick.alcock@oracle.com>2020-07-22 18:05:32 +0100
commit62cdd7b18fc41a29b6bc22b4bbba0bff55434628 (patch)
tree547a51a34282fe8b284f16a58e48ee48164325ba
parentfa03171fb46381f904c3434bd0e3d23b54783b2f (diff)
downloadbinutils-62cdd7b18fc41a29b6bc22b4bbba0bff55434628.zip
binutils-62cdd7b18fc41a29b6bc22b4bbba0bff55434628.tar.gz
binutils-62cdd7b18fc41a29b6bc22b4bbba0bff55434628.tar.bz2
ld, testsuite: do not run CTF tests at all on non-ELF for now
Right now, the linker is not emitting CTF sections on (at least some) non-ELF platforms, because work similar to that done for ELF needs to be done to each platform in turn to emit linker-generated sections whose contents are programmatically derived. (Or something better needs to be done.) So, for now, the CTF tests will fail on non-ELF for lack of a .ctf section in the output: so skip the CTF tests there temporarily. (This is not the same as the permanent skip of the diags tests, which is done because the input for those is assembler that depends on the ELF syntax of pseudos like .section: this is only a temporary skip, until the linker grows support for CTF on more targets.) ld/ * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-ctf/ctf.exp5
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c0f6eca..cb49784 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+ * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
* ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the
first input .ctf section.
diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp
index 5d177af..be4c6ed 100644
--- a/ld/testsuite/ld-ctf/ctf.exp
+++ b/ld/testsuite/ld-ctf/ctf.exp
@@ -23,6 +23,11 @@ if [skip_ctf_tests] {
return 0
}
+if ![is_elf_format] {
+ unsupported "CTF needs bfd changes to be emitted on non-ELF"
+ return 0
+}
+
set ctf_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
foreach ctf_test $ctf_test_list {