* [PATCH][gdb/testsuite] Use -fuse-ld=gold in fission.exp
@ 2019-06-18 7:25 Tom de Vries
2019-06-18 15:53 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2019-06-18 7:25 UTC (permalink / raw)
To: gdb-patches
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][gdb/testsuite] Use -fuse-ld=gold in fission.exp
2019-06-18 7:25 [PATCH][gdb/testsuite] Use -fuse-ld=gold in fission.exp Tom de Vries
@ 2019-06-18 15:53 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2019-06-18 15:53 UTC (permalink / raw)
To: Tom de Vries; +Cc: gdb-patches
>>>>> "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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-18 15:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18 7:25 [PATCH][gdb/testsuite] Use -fuse-ld=gold in fission.exp Tom de Vries
2019-06-18 15:53 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).