aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.btrace
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2020-12-16 18:15:04 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2021-03-03 09:15:39 +0100
commitc7c7253a47891ff052b85708080a12d86e1720bc (patch)
tree368c98d1f432808b72582deea1b6981c10fb8eb8 /gdb/testsuite/gdb.btrace
parentf0778fc1cf9a08299a17e7263a6fd00b3d734a0c (diff)
downloadgdb-c7c7253a47891ff052b85708080a12d86e1720bc.zip
gdb-c7c7253a47891ff052b85708080a12d86e1720bc.tar.gz
gdb-c7c7253a47891ff052b85708080a12d86e1720bc.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.btrace')
-rw-r--r--gdb/testsuite/gdb.btrace/unknown_functions.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.btrace/unknown_functions.exp b/gdb/testsuite/gdb.btrace/unknown_functions.exp
index 5dfd8d1..dc52d75 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
}