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.
This commit is contained in:
Markus Metzger 2020-12-16 18:15:04 +01:00
parent f0778fc1cf
commit c7c7253a47
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-03-03 Markus Metzger <markus.t.metzger@intel.com>
* gdb.btrace/unknown_functions.exp: Move -Wl,-x to ldflags.
2021-03-03 Markus Metzger <markus.t.metzger@intel.com>
* gdb.btrace/rn-dl-bind.exp: Replace reverse-step with

View File

@ -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
}