From 0ed4690a67e2c4703d9088312de652d0d5f1aaaf Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 18 Jun 2019 19:03:38 +0200 Subject: [PATCH] [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 * boards/fission.exp (debug_flags): Add "-fuse-ld=gold". --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/boards/fission.exp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * boards/fission.exp (debug_flags): Add "-fuse-ld=gold". + 2019-06-18 Tom Tromey * 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" -- 2.7.4