From c0cabacda7db153dcdb0940972a680296a9e56f3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 14 Sep 2017 09:49:26 +0200 Subject: syz-fuzzer, syz-execprog: add -arch flag arch flag specifies target arch, which can be different from GOARCH. For example, 386 executor with amd64 fuzzer. --- pkg/repro/repro.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkg/repro') diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index 54c4a248a..c3aaa8a22 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -537,8 +537,10 @@ func (ctx *context) testProgs(entries []*prog.LogEntry, duration time.Duration, } program += "]" } - command := fmt.Sprintf("%v -executor %v -cover=0 -procs=%v -repeat=%v -sandbox %v -threaded=%v -collide=%v %v", - inst.execprogBin, inst.executorBin, opts.Procs, repeat, opts.Sandbox, opts.Threaded, opts.Collide, vmProgFile) + command := fmt.Sprintf("%v -executor %v -arch=%v -cover=0 -procs=%v -repeat=%v"+ + " -sandbox %v -threaded=%v -collide=%v %v", + inst.execprogBin, inst.executorBin, ctx.cfg.TargetArch, opts.Procs, repeat, + opts.Sandbox, opts.Threaded, opts.Collide, vmProgFile) ctx.reproLog(2, "testing program (duration=%v, %+v): %s", duration, opts, program) return ctx.testImpl(inst.Instance, command, duration) } -- cgit mrf-deployment