diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-06-26 17:34:52 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-26 17:34:52 +0200 |
| commit | 349959fbca6323fd779fd8641d2bbaf393c95752 (patch) | |
| tree | 515eac4ff916ffce3dc5d51f1fab2208d0324689 /tools/syz-check/check.go | |
| parent | 9506ea6dcf9fdba4ff8e4d802cc76438f3267160 (diff) | |
tools/syz-check: support all arches
Diffstat (limited to 'tools/syz-check/check.go')
| -rw-r--r-- | tools/syz-check/check.go | 4 |
1 files changed, 2 insertions, 2 deletions
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{}) { |
