diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2020-12-16 18:15:04 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2021-03-03 09:15:39 +0100 |
commit | c7c7253a47891ff052b85708080a12d86e1720bc (patch) | |
tree | 368c98d1f432808b72582deea1b6981c10fb8eb8 /gdb | |
parent | f0778fc1cf9a08299a17e7263a6fd00b3d734a0c (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.btrace/unknown_functions.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3ae045a..3712199 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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 reverse-continue to breakpoint. 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 } |