diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-03-18 16:02:30 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-03-18 20:13:30 +0100 |
| commit | 4e0d7154b1a701b906f3d9c5401dc0109253971f (patch) | |
| tree | 36a7c5fa940450ad36698121a8723f7733cc59ea /src/zig_llvm.cpp | |
| parent | 09d6938df9246bac20e84f5512743e96bccdfa3d (diff) | |
| download | zig-4e0d7154b1a701b906f3d9c5401dc0109253971f.tar.gz zig-4e0d7154b1a701b906f3d9c5401dc0109253971f.zip | |
wasm-linker: implement __wasm_init_memory & flag
Implements the __wasm_init_memory and __wasm_init_memory_flag synthetic
function and symbol.
The former will initialize all passive segments during runtime. For the
bss section we will fill it with zeroes, whereas the other segments
will simply be initialized only.
The latter stores the offset into the linear data section, after all
heap memory that is part of the Wasm module. Any memory initialized
at runtime starts from this offset.
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions
