+ fill the memory section in the wasm exe writer

This commit is contained in:
Nikolay Nikolov 2024-01-01 00:39:14 +02:00
parent 507e9eb20a
commit f4f6a16796

View File

@ -4107,6 +4107,10 @@ implementation
WriteImportSection;
WriteCodeSegments;
WriteUleb(FWasmSections[wsiMemory],1);
WriteByte(FWasmSections[wsiMemory],0);
WriteUleb(FWasmSections[wsiMemory],2); { todo: fill min memory (pages) }
{...}
Writer.write(WasmModuleMagic,SizeOf(WasmModuleMagic));
@ -4114,6 +4118,7 @@ implementation
WriteWasmSection(wsiType);
WriteWasmSection(wsiImport);
WriteWasmSection(wsiFunction);
WriteWasmSection(wsiMemory);
WriteWasmSection(wsiCode);
result := true;