From 349959fbca6323fd779fd8641d2bbaf393c95752 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 26 Jun 2020 17:34:52 +0200 Subject: tools/syz-check: support all arches --- tools/syz-check/check.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/syz-check') diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 3a2726822..81f1e9e05 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -51,8 +51,8 @@ func main() { flagDWARF = flag.Bool("dwarf", true, "do checking based on DWARF") flagNetlink = flag.Bool("netlink", true, "do checking of netlink policies") ) - arches := map[string]*string{"amd64": nil, "386": nil, "arm64": nil, "arm": nil} - for arch := range arches { + arches := make(map[string]*string) + for arch := range targets.List["linux"] { arches[arch] = flag.String("obj-"+arch, "", arch+" kernel object file") } failf := func(msg string, args ...interface{}) { -- cgit mrf-deployment