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
Read-only static data location? #10315
Comments
Yes this should certainly be do-able. I think the linker should provide a symbol for that, although I don't think we do today. It does looks like we already put the |
Sadly it looks like we can find the end of the data and end of the bss using some old legacy C symbols:
wasm-ld supports these but sadly they are not what we want here. We can also get the start and end of any sections that is a C identifier. So if you put a data symbols in sectiion So I think we either need to create a new magic symbol for |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant. |
This still sounds like it might be useful. |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant. |
A user hit a case where static memory was being trashed it seems. Talking with @dschuff , if we knew where read-only static data was, we could make SAFE_HEAP check for any writes to there.
Does the linker have that information? We need to differentiate the read-only data from the read-write and bss sections, basically. cc @sbc100 @tlively
The text was updated successfully, but these errors were encountered: