testsuite, gdb.btrace: move -Wl,-x to ldflags
authorMarkus Metzger <markus.t.metzger@intel.com>
Wed, 16 Dec 2020 17:15:04 +0000 (18:15 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 3 Mar 2021 08:15:39 +0000 (09:15 +0100)
commitc7c7253a47891ff052b85708080a12d86e1720bc
tree368c98d1f432808b72582deea1b6981c10fb8eb8
parentf0778fc1cf9a08299a17e7263a6fd00b3d734a0c
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
gdb/testsuite/gdb.btrace/unknown_functions.exp