]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: run_lookup_test: force BTF emission (NOT FOR UPSTREAMING)
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:49:22 +0000 (21:49 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:49:22 +0000 (21:49 +0100)
Pro tem as a hack until GCC supports -gctf for v4, or v3 upgrading
is supported, or direct CTF-then-BTF tests are written, just emit
BTF for test purposes.

This breaks most of the tests: DO NOT UPSTREAM.

libctf/testsuite/lib/ctf-lib.exp

index 6adfd78d08d50780b83c10051333488355609b11..9c52a603eff9bccbdb42857b3470d18dbccfdd76 100644 (file)
@@ -234,10 +234,10 @@ proc run_lookup_test { name args } {
        set lookup_flags ""
        if { $run_ld } {
            set lookup_output "tmpdir/out.so"
-           set lookup_flags "-gctf -fPIC $shared $opts(link_flags)"
+           set lookup_flags "-gbtf -fPIC $shared $opts(link_flags)"
        } else {
            set lookup_output "tmpdir/out.o"
-           set lookup_flags "-gctf -fPIC -c"
+           set lookup_flags "-gbtf -fPIC -c"
        }
        if [board_info [target_info name] exists cflags] {
            append lookup_flags " [board_info [target_info name] cflags]"