[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".
This commit is contained in:
Tom de Vries 2019-06-18 19:03:38 +02:00
parent 3360b6e796
commit 0ed4690a67
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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"