mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 20:21:58 +02:00
+ WASI internal linker: implemented GetCodeSize, GetDataSize and GetBssSize.
This commit is contained in:
parent
b361b41a86
commit
1e89579766
@ -78,9 +78,7 @@ type
|
||||
protected
|
||||
procedure DefaultLinkScript;override;
|
||||
|
||||
function GetCodeSize(aExeOutput: TExeOutput): QWord;override;
|
||||
function GetDataSize(aExeOutput: TExeOutput): QWord;override;
|
||||
function GetBssSize(aExeOutput: TExeOutput): QWord;override;
|
||||
public
|
||||
constructor create;override;
|
||||
|
||||
@ -315,22 +313,10 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
function TInternalLinkerWasi.GetCodeSize(aExeOutput: TExeOutput): QWord;
|
||||
begin
|
||||
{TODO}
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;
|
||||
begin
|
||||
{TODO}
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function TInternalLinkerWasi.GetBssSize(aExeOutput: TExeOutput): QWord;
|
||||
begin
|
||||
{TODO}
|
||||
Result:=0;
|
||||
Result:=aExeOutput.findexesection('.rodata').size +
|
||||
aExeOutput.findexesection('.data').size;
|
||||
end;
|
||||
|
||||
constructor TInternalLinkerWasi.create;
|
||||
|
Loading…
Reference in New Issue
Block a user