[PATCH][gdb/testsuite] Use -fuse-ld=gold in fission.exp
Tom de Vries
tdevries@suse.de
Tue Jun 18 07:25:00 GMT 2019
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(-)
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"
More information about the Gdb-patches
mailing list