Minor fix to pass all tests in OpenBSD - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib/jit_arm-swf.c
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2022年10月05日 17:26:45 -0300
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2022年10月05日 17:26:45 -0300
commit69cbcc48a6bb238a425134142b7df8d12047882d (patch)
treea5bb2479efb302d53f11fe75a774819c9d5ee832 /lib/jit_arm-swf.c
parentdbaffbc3491e1ee878456f60abdaf5fcf678e44d (diff)
downloadlightning-69cbcc48a6bb238a425134142b7df8d12047882d.tar.gz
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
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 13:48:10 +0000

AltStyle によって変換されたページ (->オリジナル) /