diff options
author | Tom de Vries <tdevries@suse.de> | 2019-06-18 19:03:38 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-06-18 19:03:38 +0200 |
commit | 0ed4690a67e2c4703d9088312de652d0d5f1aaaf (patch) | |
tree | c2c004fe63cbab7c8dd61787a68a5232e2836901 | |
parent | 3360b6e7963e3c579e50078e78d226ea63e2960f (diff) | |
download | gdb-0ed4690a67e2c4703d9088312de652d0d5f1aaaf.zip gdb-0ed4690a67e2c4703d9088312de652d0d5f1aaaf.tar.gz gdb-0ed4690a67e2c4703d9088312de652d0d5f1aaaf.tar.bz2 |
[gdb/testsuite] Use -fuse-ld=gold in fission.exp
The target board fission.exp requires the gold linker (because it supports
--gdb-index).
When running the target board on a system where the default linker is not
gold, most tests will fail to compile.
Fix this by adding "-fuse-ld=gold" ( supported in gcc since version 4.8).
gdb/testsuite/ChangeLog:
2019-06-18 Tom de Vries <tdevries@suse.de>
* boards/fission.exp (debug_flags): Add "-fuse-ld=gold".
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/boards/fission.exp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 75adad3..71ac0ce 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-06-18 Tom de Vries <tdevries@suse.de> + + * boards/fission.exp (debug_flags): Add "-fuse-ld=gold". + 2019-06-18 Tom Tromey <tromey@adacore.com> * gdb.base/list0.h: Add comment explaining control character. diff --git a/gdb/testsuite/boards/fission.exp b/gdb/testsuite/boards/fission.exp index 2c09d4d..64c0e0b 100644 --- a/gdb/testsuite/boards/fission.exp +++ b/gdb/testsuite/boards/fission.exp @@ -34,7 +34,8 @@ set_board_info debug_flags \ "-gsplit-dwarf" \ "-ggnu-pubnames" \ "-fdebug-types-section" \ - "-Wl,--gdb-index" }] + "-Wl,--gdb-index" \ + "-fuse-ld=gold" }] # This is needed otherwise dejagnu tries to rsh to host "fission". load_board_description "local-board" |