mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:49:16 +02:00
+ wasm internal linker: count the 'fpc.resources' section towards the binary
data size
This commit is contained in:
parent
07da0058e3
commit
2828752587
@ -309,7 +309,8 @@ end;
|
|||||||
function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;
|
function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;
|
||||||
begin
|
begin
|
||||||
Result:=aExeOutput.findexesection('.rodata').size +
|
Result:=aExeOutput.findexesection('.rodata').size +
|
||||||
aExeOutput.findexesection('.data').size;
|
aExeOutput.findexesection('.data').size +
|
||||||
|
aExeOutput.findexesection('fpc.resources').size;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TInternalLinkerWasi.create;
|
constructor TInternalLinkerWasi.create;
|
||||||
|
Loading…
Reference in New Issue
Block a user