]>
Commit | Line | Data |
---|---|---|
1d506c26 | 1 | # Copyright 2020-2024 Free Software Foundation, Inc. |
043e2e02 TV |
2 | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 3 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
15 | ||
16 | # This file is a dejagnu "board file" and is used to run the testsuite | |
17 | # with gold --gdb-index. | |
18 | # | |
19 | # Example usage: | |
20 | # bash$ make check RUNTESTFLAGS='--target_board=gold-gdb-index' | |
21 | ||
22 | load_board_description "local-board" | |
23 | ||
24 | # This is based on baseboards/unix.exp. | |
25 | # At the moment we only support systems that unix.exp supports. | |
26 | load_generic_config "unix" | |
27 | process_multilib_options "" | |
28 | set found_gcc [find_gcc] | |
29 | set found_gxx [find_g++] | |
30 | set found_gnatmake [find_gnatmake] | |
31 | set found_f90 [find_gfortran] | |
043e2e02 TV |
32 | set_board_info compiler "$found_gcc" |
33 | ||
34 | set opts [list] | |
35 | lappend opts \ | |
36 | "-g" \ | |
37 | "-Wl,--gdb-index" \ | |
38 | "-fuse-ld=gold" | |
39 | ||
40 | # Note: Gold also produces an index when -ggnu-pubnames is not used. Comment | |
41 | # out this line to exercise this scenario. | |
42 | lappend opts -ggnu-pubnames | |
43 | ||
44 | set_board_info debug_flags [join $opts] |