aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2025-04-25 21:49:22 +0100
committerNick Alcock <nick.alcock@oracle.com>2025-04-25 21:49:22 +0100
commit66bc73771890d03680f59d6978baac2b5c616cb4 (patch)
treed48ec8c93cfbfe41bfdf486cab5b98903746cef7
parent0ad8ddc8b49d8312cfea2b663a7bf86a20a006fd (diff)
downloadbinutils-66bc73771890d03680f59d6978baac2b5c616cb4.zip
binutils-66bc73771890d03680f59d6978baac2b5c616cb4.tar.gz
binutils-66bc73771890d03680f59d6978baac2b5c616cb4.tar.bz2
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.
-rw-r--r--libctf/testsuite/lib/ctf-lib.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libctf/testsuite/lib/ctf-lib.exp b/libctf/testsuite/lib/ctf-lib.exp
index 6adfd78..9c52a60 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]"