netbsd: implement non file backed alternative for sljitProtExecAllocator (#29)
commit9a3d3998dcaf151f5c562f8dde457790fe0d167c
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Tue, 7 Apr 2020 18:56:52 +0000 (7 11:56 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 18:56:52 +0000 (7 20:56 +0200)
tree66fda3d809050ca8b9c1c0f550ea2041bccacb51
parent08b9145b71e59bb351d824d170b8b6bd1ebf5061
netbsd: implement non file backed alternative for sljitProtExecAllocator (#29)

the experimental sljitProtExecAllocator uses file backed maps to
workaround W^X policies and is therefore incompatible with fork()

NetBSD allows anonymous pages to have multiple maps with different
permissions by using mremap with the MAP_REMAPDUP flag so use that
instead.
sljit_src/sljitProtExecAllocator.c