From b771b17ec95715c24715d730363f6f07bc46fd4f Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Tue, 28 Aug 2018 19:07:26 +0200 Subject: Add mandatory OpenBSD bits (#689) all: add openbsd support squash of the following commits: * openbsd: add mandatory bits * report: add OpenBSD support * executor: skip building kvm on OpenBSD * executor: add OpenBSD support Linking against libutil is necessary due to usage of openpty(3). * executor: fix typo in fail() message * fixup! report: add OpenBSD support * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! report: add OpenBSD support * gometalinter: skip sys/openbsd --- executor/defs.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'executor/defs.h') diff --git a/executor/defs.h b/executor/defs.h index 1a31b3c90..7567cb0f2 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -125,6 +125,21 @@ #endif +#if GOOS_openbsd +#define GOOS "openbsd" + +#if GOARCH_amd64 +#define GOARCH "amd64" +#define SYZ_REVISION "f1bde02bbb60bf849ed61dda9a552900891199ef" +#define SYZ_EXECUTOR_USES_FORK_SERVER 1 +#define SYZ_EXECUTOR_USES_SHMEM 1 +#define SYZ_PAGE_SIZE 4096 +#define SYZ_NUM_PAGES 4096 +#define SYZ_DATA_OFFSET 536870912 +#endif + +#endif + #if GOOS_test #define GOOS "test" -- cgit mrf-deployment