[gdb/testsuite] Use -fuse-ld=gold in fission.exp

Message ID 20190618072525.GA24835@delia
State New, archived
Headers

Commit Message

Tom de Vries June 18, 2019, 7:25 a.m. UTC
  Hi,

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

OK for trunk?

Thanks,
- Tom

[gdb/testsuite] Use -fuse-ld=gold in fission.exp

gdb/testsuite/ChangeLog:

2019-06-18  Tom de Vries  <tdevries@suse.de>

	* boards/fission.exp (debug_flags): Add "-fuse-ld=gold".

---
 gdb/testsuite/boards/fission.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Tom Tromey June 18, 2019, 3:53 p.m. UTC | #1
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> [gdb/testsuite] Use -fuse-ld=gold in fission.exp

Tom> gdb/testsuite/ChangeLog:

Tom> 2019-06-18  Tom de Vries  <tdevries@suse.de>

Tom> 	* boards/fission.exp (debug_flags): Add "-fuse-ld=gold".

Thank you for the patch.  I think this is OK.

Tom
  

Patch

diff --git a/gdb/testsuite/boards/fission.exp b/gdb/testsuite/boards/fission.exp
index 2c09d4d772..64c0e0b74f 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"