From d9a893a554d6077f5cab4aa8a81f24213443232e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 2 Aug 2018 19:07:22 +0200 Subject: Makefile: don't compile all targets into target binaries Currently target binaries contain support for all OS/arch combinations. However, obviously a fuchsia target binary won't test windows. For target binaries we need support only for a single target (with the exception of 386/arm target in amd64/arm64 binaries). So compile in only _the_ target into target binaries. This reduces akaros/amd64 fuzzer binary from 33 to 7 MB and execprog from 28 to 2 MB. --- sys/netbsd/init.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/netbsd/init.go') diff --git a/sys/netbsd/init.go b/sys/netbsd/init.go index 908cbe655..7b6b1250e 100644 --- a/sys/netbsd/init.go +++ b/sys/netbsd/init.go @@ -5,15 +5,10 @@ package netbsd import ( "github.com/google/syzkaller/prog" - "github.com/google/syzkaller/sys/netbsd/gen" "github.com/google/syzkaller/sys/targets" ) -func init() { - prog.RegisterTarget(gen.Target_amd64, initTarget) -} - -func initTarget(target *prog.Target) { +func InitTarget(target *prog.Target) { arch := &arch{ MAP_FIXED: target.ConstMap["MAP_FIXED"], } -- cgit mrf-deployment