From: Nick Alcock Date: Tue, 14 Jul 2020 17:33:11 +0000 (+0100) Subject: ld, testsuite: do not run CTF tests at all on non-ELF for now X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62cdd7b18fc41a29b6bc22b4bbba0bff55434628;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index c0f6eca4f62..cb49784ea97 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2020-07-22 Nick Alcock + + * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now. + 2020-07-22 Nick Alcock * ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp index 5d177afef0d..be4c6ed3d6e 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 {