emscripten-core / emscripten-core/emscripten

Read-only static data location?

Open
#10,315 5 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.