diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 14:15:52 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 16:02:37 +0200 |
| commit | 66393d1884cb6a6d36dcbe5ad772ae9cf8f2adad (patch) | |
| tree | a8747f057372ed2e2a451a0c0988b99f70a012dc /pkg/host | |
| parent | 4f60e46e498eedc0d9407d11d1078208c37d19f1 (diff) | |
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.
Diffstat (limited to 'pkg/host')
| -rw-r--r-- | pkg/host/host.go | 3 |
1 files changed, 0 insertions, 3 deletions
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) } |
