diff options
| author | Anton Lindqvist <anton@basename.se> | 2018-11-17 19:32:19 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-11-17 10:32:19 -0800 |
| commit | 1508cc9c44358f1eaf1a53988c6f7c8b6c0dd7ee (patch) | |
| tree | daec295076e15ad16bdbb35170e6e779fc066a10 /sys | |
| parent | b08ee62aecfa850eac53b4dd903299d32b5c567d (diff) | |
pkg/csource: add support for creating reproducers on OpenBSD
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 ad47579ed..9d5af07f4 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -45,6 +45,8 @@ type osCommon struct { ExeExtension string // Name of the kernel object file. KernelObject string + // Name of cpp(1) executable. + CPP string } func Get(OS, arch string) *Target { @@ -259,6 +261,7 @@ var oses = map[string]osCommon{ ExecutorUsesShmem: true, ExecutorUsesForkServer: true, KernelObject: "vmlinux", + CPP: "cpp", }, "freebsd": { SyscallNumbers: true, @@ -266,6 +269,7 @@ var oses = map[string]osCommon{ ExecutorUsesShmem: true, ExecutorUsesForkServer: true, KernelObject: "vmlinux", + CPP: "cpp", }, "netbsd": { SyscallNumbers: true, @@ -273,6 +277,7 @@ var oses = map[string]osCommon{ ExecutorUsesShmem: true, ExecutorUsesForkServer: true, KernelObject: "vmlinux", + CPP: "cpp", }, "openbsd": { SyscallNumbers: true, @@ -280,12 +285,14 @@ var oses = map[string]osCommon{ ExecutorUsesShmem: true, ExecutorUsesForkServer: true, KernelObject: "bsd.gdb", + CPP: "ecpp", }, "fuchsia": { SyscallNumbers: false, ExecutorUsesShmem: false, ExecutorUsesForkServer: false, KernelObject: "zircon.elf", + CPP: "cpp", }, "windows": { SyscallNumbers: false, @@ -293,6 +300,7 @@ var oses = map[string]osCommon{ ExecutorUsesForkServer: false, ExeExtension: ".exe", KernelObject: "vmlinux", + CPP: "cpp", }, "akaros": { SyscallNumbers: true, @@ -300,6 +308,7 @@ var oses = map[string]osCommon{ ExecutorUsesShmem: false, ExecutorUsesForkServer: true, KernelObject: "akaros-kernel-64b", + CPP: "cpp", }, "trusty": { SyscallNumbers: true, |
