+ wasm internal linker: count the 'fpc.resources' section towards the binary

data size
This commit is contained in:
Nikolay Nikolov 2024-06-27 23:39:30 +03:00
parent 07da0058e3
commit 2828752587

View File

@ -309,7 +309,8 @@ end;
function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;
begin
Result:=aExeOutput.findexesection('.rodata').size +
aExeOutput.findexesection('.data').size;
aExeOutput.findexesection('.data').size +
aExeOutput.findexesection('fpc.resources').size;
end;
constructor TInternalLinkerWasi.create;