From: Nick Alcock Date: Fri, 25 Apr 2025 20:49:22 +0000 (+0100) Subject: libctf: run_lookup_test: force BTF emission (NOT FOR UPSTREAMING) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66bc73771890d03680f59d6978baac2b5c616cb4;p=thirdparty%2Fbinutils-gdb.git libctf: run_lookup_test: force BTF emission (NOT FOR UPSTREAMING) 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. --- diff --git a/libctf/testsuite/lib/ctf-lib.exp b/libctf/testsuite/lib/ctf-lib.exp index 6adfd78d08d..9c52a603eff 100644 --- a/libctf/testsuite/lib/ctf-lib.exp +++ b/libctf/testsuite/lib/ctf-lib.exp @@ -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]"