ld, testsuite: do not run CTF tests at all on non-ELF for now
authorNick Alcock <nick.alcock@oracle.com>
Tue, 14 Jul 2020 17:33:11 +0000 (18:33 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 17:05:32 +0000 (18:05 +0100)
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.

ld/ChangeLog
ld/testsuite/ld-ctf/ctf.exp

index c0f6eca4f62afb8b74b2ee16965fd54bb71e2b45..cb49784ea97738ce485103b5a055eb0ef075a3e5 100644 (file)
@@ -1,3 +1,7 @@
+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
index 5d177afef0d128daaf06a8da92cd33e6fd93e633..be4c6ed3d6edd438d4ff3e4c21d85e1ccd9dc164 100644 (file)
@@ -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 {
This page took 0.025433 seconds and 4 git commands to generate.