From: Markus Metzger Date: Wed, 16 Dec 2020 17:15:04 +0000 (+0100) Subject: testsuite, gdb.btrace: move -Wl,-x to ldflags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7c7253a47891ff052b85708080a12d86e1720bc;p=binutils-gdb.git 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3ae045af6c4..3712199c4b7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gdb/testsuite/gdb.btrace/unknown_functions.exp b/gdb/testsuite/gdb.btrace/unknown_functions.exp index 5dfd8d10705..dc52d75c0f3 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 }