mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
+ fill the memory section in the wasm exe writer
This commit is contained in:
parent
507e9eb20a
commit
f4f6a16796
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user