+ WASI internal linker: implemented GetCodeSize, GetDataSize and GetBssSize.

This commit is contained in:
Nikolay Nikolov 2024-01-01 15:32:28 +02:00
parent b361b41a86
commit 1e89579766

View File

@ -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;