From 23ec4a527d8554c7f09ee7683e6474175bd23b72 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 10 Nov 2021 01:10:00 -0500 Subject: 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. --- sim/testsuite/lib/sim-defs.exp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sim/testsuite/lib') diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index 59c7ded..6e8feaf 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -390,13 +390,6 @@ proc run_sim_test { name requested_machs } { set options "$options timeout=$opts(timeout)" } - if [string match "example" "$mach"] { - set objcopy [find_binutils_prog objcopy] - set comp_output [remote_exec host $objcopy "-O binary -j .text ${name}.x ${name}.bin"] - file rename -force "${name}.bin" "${name}.x" - append opts(sim,$mach) " --target binary" - } - set result [sim_run ${name}.x "$opts(sim,$mach) $global_sim_options" "$opts(progopts)" "" "$options"] set return_code [lindex $result 0] set output [lindex $result 1] -- cgit v1.1