diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2015-04-13 01:54:43 +0200 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2015-04-13 01:56:04 +0200 |
commit | a9d9677441e54816aa76ffd1736419ec096b4ef1 (patch) | |
tree | 5f11ffe6d69e6e32c07d7324114470c750afb901 /sim/testsuite/lib | |
parent | e787f858a43c9a6b54a74cec24f954b52619433e (diff) | |
download | gdb-a9d9677441e54816aa76ffd1736419ec096b4ef1.zip gdb-a9d9677441e54816aa76ffd1736419ec096b4ef1.tar.gz gdb-a9d9677441e54816aa76ffd1736419ec096b4ef1.tar.bz2 |
Do unset_currtarget_info ldscript for all simulator testsuites.
sim/testsuite:
* sim-defs.exp (sim_init): Unset target ldscript here.
sim/testsuite/sim/mips:
* basic.exp: Don't unset target ldscript here.
Diffstat (limited to 'sim/testsuite/lib')
-rw-r--r-- | sim/testsuite/lib/sim-defs.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index fb2346a..2faf5dc 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -12,6 +12,16 @@ proc sim_init { args } { global sim_path set sim_path [board_info target sim] # Need to return an empty string (copied from GAS). + + # As gross as it is, we unset the linker script specified by the target + # board. The simulator board file mips-sim.exp, sets ldscript to the + # MIPS libgloss linker scripts which include libgcc (and possibly other + # libraries), which the linker (used to link these tests rather than the + # compiler) can't necessarily find. Similarly iq2000-sim.exp and + # m68hc11-sim.exp. So, we make it a common rule to clear the slate for + # all simulators. + unset_currtarget_info ldscript + return "" } |