mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 16:29:27 +02:00
+ wasm internal linker: count the 'fpc.reshandles' section towards the bss size
of the binary
This commit is contained in:
parent
2828752587
commit
924d4b9b53
@ -79,6 +79,7 @@ type
|
||||
procedure DefaultLinkScript;override;
|
||||
|
||||
function GetDataSize(aExeOutput: TExeOutput): QWord;override;
|
||||
function GetBssSize(aExeOutput: TExeOutput): QWord;override;
|
||||
public
|
||||
constructor create;override;
|
||||
|
||||
@ -313,6 +314,12 @@ begin
|
||||
aExeOutput.findexesection('fpc.resources').size;
|
||||
end;
|
||||
|
||||
function TInternalLinkerWasi.GetBssSize(aExeOutput: TExeOutput): QWord;
|
||||
begin
|
||||
Result:=aExeOutput.findexesection('.bss').size +
|
||||
aExeOutput.findexesection('fpc.reshandles').size;
|
||||
end;
|
||||
|
||||
constructor TInternalLinkerWasi.create;
|
||||
begin
|
||||
inherited create;
|
||||
|
Loading…
Reference in New Issue
Block a user