Minor fix to pass all tests in OpenBSD
OpenBSD does not allow PROT_WRITE and PROT_EXEC as mmap flags by
default.
The code does mprotect later removing the PROT_WRITE access, so,
this change could be made default, instead of OpenBSD specific.
The check/setcode.c is a bit more complicated, and might need
documentation updates specific to OpenBSD. From mmap manual page:
[ENOTSUP] The accesses requested in the prot argument are not allowed.
In particular, PROT_WRITE | PROT_EXEC mappings are not permitted
unless the filesystem is mounted wxallowed and the process is
link-time tagged with wxneeded. (See also kern.wxabort in
sysctl(2) for a method to diagnose failure).
Diffstat (limited to 'lib/jit_arm-swf.c')
0 files changed, 0 insertions, 0 deletions