From 66393d1884cb6a6d36dcbe5ad772ae9cf8f2adad Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 15 Sep 2017 14:15:52 +0200 Subject: pkg/compiler: don't genererate missing syscalls We used to generate them only because manager had no idea what arch it is testing. So syscalls numbers had to match between all arches. This is not needed anymore. Also don't generate unreferenced structs/resources. --- pkg/host/host.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg/host') diff --git a/pkg/host/host.go b/pkg/host/host.go index 993db175b..ef301e2dc 100644 --- a/pkg/host/host.go +++ b/pkg/host/host.go @@ -38,9 +38,6 @@ func DetectSupportedSyscalls(target *prog.Target) (map[*prog.Syscall]bool, error } func isSupported(kallsyms []byte, c *prog.Syscall) bool { - if c.NR == ^uint64(0) { - return false // don't even have a syscall number - } if strings.HasPrefix(c.CallName, "syz_") { return isSupportedSyzkall(c) } -- cgit mrf-deployment