+ wasi internal linker: also write the fpc.resources section to the file

This commit is contained in:
Nikolay Nikolov 2024-06-27 23:32:54 +03:00
parent e17b6291f5
commit c4f046f1b8

View File

@ -4635,11 +4635,12 @@ implementation
var var
DataCount: Integer; DataCount: Integer;
begin begin
DataCount:=2; DataCount:=3;
WriteUleb(FWasmSections[wsiDataCount],DataCount); WriteUleb(FWasmSections[wsiDataCount],DataCount);
WriteUleb(FWasmSections[wsiData],DataCount); WriteUleb(FWasmSections[wsiData],DataCount);
WriteExeSection(FindExeSection('.rodata')); WriteExeSection(FindExeSection('.rodata'));
WriteExeSection(FindExeSection('.data')); WriteExeSection(FindExeSection('.data'));
WriteExeSection(FindExeSection('fpc.resources'));
end; end;
procedure WriteTableAndElemSections; procedure WriteTableAndElemSections;