Hi, > I recommend to add one extra step into generated image: > > echo security.pax.mprotect.enabled=0 >> /etc/sysctl.conf
Done. > Alternatively (and preferably) enhance qemu to handle RWX allocation for > JIT on NetBSD. > > Example in libffi. > > https://github.com/libffi/libffi/commit/2bfcd29955c02b67fa10a68cc4200f6838181e0f So, from looking at the patch it seems you need two mappings of the same page, one writable and one executable. Or, maybe it is also possible with one mapping which is writable first when you fill it with code, then gets flipped over to executable when you are done with the initialization and want use it. Is that correct? I suspect supporting that in tcg isn't exactly trivial. Does OpenBSD work the same way btw? cheers, Gerd