Do unset_currtarget_info ldscript for all simulator testsuites.
authorHans-Peter Nilsson <hp@bitrange.com>
Sun, 12 Apr 2015 23:54:43 +0000 (01:54 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Sun, 12 Apr 2015 23:56:04 +0000 (01:56 +0200)
sim/testsuite:
* sim-defs.exp (sim_init): Unset target ldscript here.

sim/testsuite/sim/mips:
* basic.exp: Don't unset target ldscript here.

sim/testsuite/ChangeLog
sim/testsuite/lib/sim-defs.exp
sim/testsuite/sim/mips/ChangeLog
sim/testsuite/sim/mips/basic.exp

index 6bae4e5a9a1e7a3c8f9d3644353577eca2278de7..20038f1916765053c339ef2cd06595becfd7d162 100644 (file)
@@ -1,3 +1,7 @@
+2015-04-13  Hans-Peter Nilsson  <hp@axis.com>
+
+       * sim-defs.exp (sim_init): Unset target ldscript here.
+
 2015-03-30  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac: Add d10v-*-elf.
index fb2346a60da01ab9cfbd9426dbd3ee997d77829a..2faf5dcab8d96d56115720eff6f12b595220d9e1 100644 (file)
@@ -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 ""
 }
 
index 550514417848b0058789e007df390785cf325745..d2080d1e17dc1c3eeca1e4bbb4b3762fe4b80a19 100644 (file)
@@ -1,3 +1,7 @@
+2015-04-13  Hans-Peter Nilsson  <hp@axis.com>
+
+       * basic.exp: Don't unset target ldscript here.
+
 2011-01-06  Hans-Peter Nilsson  <hp@axis.com>
 
        * testutils.inc: Correct comment syntax fallout from
index 1c78c871740971f27e60d15881e121f6a4df368d..ddef53544a2b0f68dcaaa7026c490983a1d3e72b 100644 (file)
@@ -1,11 +1,5 @@
 # MIPS simulator instruction tests
 
-# As gross as it is, we unset the linker script specified by the target
-# board.  The MIPS libgloss linker scripts include libgcc (and possibly
-# other libraries), which the linker (used to link these tests rather
-# than the compiler) can't necessarily find.
-unset_currtarget_info ldscript
-
 # Do "run_sim_test TESTFILE MODELS" for each combination of the
 # mf{lo,hi} -> mult/div/mt{lo,hi} hazard described in mips.igen.
 # Insert NOPS nops after the mflo or mfhi.
This page took 0.027864 seconds and 4 git commands to generate.