mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:29:17 +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;
|
WriteImportSection;
|
||||||
WriteCodeSegments;
|
WriteCodeSegments;
|
||||||
|
|
||||||
|
WriteUleb(FWasmSections[wsiMemory],1);
|
||||||
|
WriteByte(FWasmSections[wsiMemory],0);
|
||||||
|
WriteUleb(FWasmSections[wsiMemory],2); { todo: fill min memory (pages) }
|
||||||
|
|
||||||
{...}
|
{...}
|
||||||
|
|
||||||
Writer.write(WasmModuleMagic,SizeOf(WasmModuleMagic));
|
Writer.write(WasmModuleMagic,SizeOf(WasmModuleMagic));
|
||||||
@ -4114,6 +4118,7 @@ implementation
|
|||||||
WriteWasmSection(wsiType);
|
WriteWasmSection(wsiType);
|
||||||
WriteWasmSection(wsiImport);
|
WriteWasmSection(wsiImport);
|
||||||
WriteWasmSection(wsiFunction);
|
WriteWasmSection(wsiFunction);
|
||||||
|
WriteWasmSection(wsiMemory);
|
||||||
WriteWasmSection(wsiCode);
|
WriteWasmSection(wsiCode);
|
||||||
|
|
||||||
result := true;
|
result := true;
|
||||||
|
Loading…
Reference in New Issue
Block a user