-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support mprotect
in wasi-emulated-mman
#497
Comments
That sounds reasonable to me. I'm not sure about the |
How do you find out the current memory size from C? |
|
Thanks. Do you think |
It looks like POSIX requires the address to be page-aligned so I chose to do that. |
This is now implemented in #500. |
Is there any interest in supporting
mprotect
in the emulation library? The main utility would be to compile programming language runtimes that link, but not execute at runtime, a JIT (what prompted me to write the issue was LLVM, similar to #447).I think the semantics should be that mapping in-bounds memory is only possible as
PROT_READ|PROT_WRITE
, and out-of-bounds memory asPROT_NONE
.The text was updated successfully, but these errors were encountered: