From 083cfd0e4a471c4f76d872ce6b521e6443246b3a Mon Sep 17 00:00:00 2001 From: Julia Hansbrough Date: Tue, 26 Feb 2019 23:57:48 -0800 Subject: executor: update syntax for making W+X fuchsia memory Fuchsia recently changed such that zx_vmar_map can't be declared executable and writeable at the same time; use a new syscall for this purpose. Also made a few errors more informative. --- executor/executor_fuchsia.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'executor/executor_fuchsia.h') diff --git a/executor/executor_fuchsia.h b/executor/executor_fuchsia.h index ebd4f678d..0703a07dc 100644 --- a/executor/executor_fuchsia.h +++ b/executor/executor_fuchsia.h @@ -12,8 +12,9 @@ static void os_init(int argc, char** argv, void* data, size_t data_size) { - if (syz_mmap((size_t)data, data_size) != ZX_OK) - fail("mmap of data segment failed"); + zx_status_t status = syz_mmap((size_t)data, data_size); + if (status != ZX_OK) + fail("mmap of data segment failed with: %d", status); } static long execute_syscall(const call_t* c, long a[kMaxArgs]) -- cgit mrf-deployment