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:
parent
f0778fc1cf
commit
c7c7253a47
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user