diff options
Diffstat (limited to 'sim/testsuite/lib/sim-defs.exp')
-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 "" } |