aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/example-synacor
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-10 01:10:00 -0500
committerMike Frysinger <vapier@gentoo.org>2021-11-10 21:45:43 -0500
commit23ec4a527d8554c7f09ee7683e6474175bd23b72 (patch)
tree808a028912ceaab638131f8427e979e09c98ecfb /sim/testsuite/example-synacor
parent2ec453b566acf1bb9e972e0f1a8ccafedae5fef6 (diff)
downloadbinutils-23ec4a527d8554c7f09ee7683e6474175bd23b72.zip
binutils-23ec4a527d8554c7f09ee7683e6474175bd23b72.tar.gz
binutils-23ec4a527d8554c7f09ee7683e6474175bd23b72.tar.bz2
sim: synacor: simplify test generation
Objcopy was used to create a binary file of just the executable code since the environment requires code to based at address 0. We can accomplish the same thing with the -Ttext=0 flag, so switch to that to get rid of custom logic.
Diffstat (limited to 'sim/testsuite/example-synacor')
-rw-r--r--sim/testsuite/example-synacor/allinsn.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/testsuite/example-synacor/allinsn.exp b/sim/testsuite/example-synacor/allinsn.exp
index a73312b..0f8d856 100644
--- a/sim/testsuite/example-synacor/allinsn.exp
+++ b/sim/testsuite/example-synacor/allinsn.exp
@@ -4,6 +4,8 @@ if [istarget *] {
# All machines.
set all_machs "example"
+ set global_ld_options "-Ttext=0"
+
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
@@ -12,4 +14,6 @@ if [istarget *] {
}
run_sim_test $src $all_machs
}
+
+ unset global_ld_options
}