diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-11-14 16:59:09 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-11-16 09:58:54 +0100 |
| commit | b5c36524a29838b0ec9345fc1a07daeebf50c833 (patch) | |
| tree | b25f237098577e50e3c1387454da625b50280478 /sys | |
| parent | cdac920beb540736200639a6254e6dc01422e705 (diff) | |
sys/targets: add HostFuzzer flag
Move HostFuzzer from vm/qemu.
It's needed in a number of other packages
and strictly saying is not specific to qemu
(it just happened that both fuchsia and akaros only support qemu).
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/targets/targets.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go index e4266ec1b..782bb142a 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -46,6 +46,9 @@ type osCommon struct { ExecutorUsesShmem bool // If ExecutorUsesForkServer, executor uses extended protocol with handshake. ExecutorUsesForkServer bool + // Special mode for OSes that do not have support for building Go binaries. + // In this mode we run Go binaries on the host machine, only executor runs on target. + HostFuzzer bool // Extension of executable files (notably, .exe for windows). ExeExtension string // Name of the kernel object file. @@ -79,6 +82,7 @@ var List = map[string]map[string]*Target{ SyscallPrefix: "SYS_", ExecutorUsesShmem: false, ExecutorUsesForkServer: false, + HostFuzzer: true, }, }, "64_fork": { @@ -92,6 +96,7 @@ var List = map[string]map[string]*Target{ SyscallPrefix: "SYS_", ExecutorUsesShmem: false, ExecutorUsesForkServer: true, + HostFuzzer: true, }, }, "32_shmem": { @@ -104,6 +109,7 @@ var List = map[string]map[string]*Target{ SyscallPrefix: "SYS_", ExecutorUsesShmem: true, ExecutorUsesForkServer: false, + HostFuzzer: true, }, }, "32_fork_shmem": { @@ -116,6 +122,7 @@ var List = map[string]map[string]*Target{ SyscallPrefix: "SYS_", ExecutorUsesShmem: true, ExecutorUsesForkServer: true, + HostFuzzer: true, }, }, }, @@ -353,6 +360,7 @@ var oses = map[string]osCommon{ SyscallNumbers: false, ExecutorUsesShmem: false, ExecutorUsesForkServer: false, + HostFuzzer: true, KernelObject: "zircon.elf", }, "windows": { @@ -368,6 +376,7 @@ var oses = map[string]osCommon{ SyscallPrefix: "SYS_", ExecutorUsesShmem: false, ExecutorUsesForkServer: true, + HostFuzzer: true, KernelObject: "akaros-kernel-64b", }, "trusty": { |
