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.
+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
#
# Also discard local symbols.
if [prepare_for_testing "failed to prepare" $testfile $srcfile \
- {additional_flags=-Wl,-x nopie}] {
+ {ldflags=-Wl,-x nopie}] {
return -1
}