From c7c7253a47891ff052b85708080a12d86e1720bc Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Wed, 16 Dec 2020 18:15:04 +0100 Subject: testsuite, gdb.btrace: move -Wl,-x to ldflags In gdb.btrace/unknown_functions.exp we need the linker to discard local symbols so GDB wouldn't know about them from the symbol table. When building with clang, it complains about the option not being used at compile-time. Move the option to ldflags to only pass it at link-time. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.btrace/unknown_functions.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3ae045a..3712199 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2021-03-03 Markus Metzger + * gdb.btrace/unknown_functions.exp: Move -Wl,-x to ldflags. + +2021-03-03 Markus Metzger + * gdb.btrace/rn-dl-bind.exp: Replace reverse-step with reverse-continue to breakpoint. diff --git a/gdb/testsuite/gdb.btrace/unknown_functions.exp b/gdb/testsuite/gdb.btrace/unknown_functions.exp index 5dfd8d1..dc52d75 100644 --- a/gdb/testsuite/gdb.btrace/unknown_functions.exp +++ b/gdb/testsuite/gdb.btrace/unknown_functions.exp @@ -29,7 +29,7 @@ standard_testfile # # Also discard local symbols. if [prepare_for_testing "failed to prepare" $testfile $srcfile \ - {additional_flags=-Wl,-x nopie}] { + {ldflags=-Wl,-x nopie}] { return -1 } -- cgit v1.1