+ create exe sections in the wasi internal linker script

This commit is contained in:
Nikolay Nikolov 2023-12-28 15:17:59 +02:00
parent eeae32669e
commit 605740fd0a

View File

@ -298,6 +298,17 @@ begin
if s<>'' then
LinkScript.Concat('READOBJECT ' + maybequoted(s));
end;
LinkScript.Concat('EXESECTION .text');
LinkScript.Concat(' OBJSECTION .text.*');
LinkScript.Concat('ENDEXESECTION');
LinkScript.Concat('EXESECTION .data');
LinkScript.Concat(' OBJSECTION .rodata.*');
LinkScript.Concat(' OBJSECTION .data.*');
LinkScript.Concat(' OBJSECTION .bss');
LinkScript.Concat('ENDEXESECTION');
end;
function TInternalLinkerWasi.GetCodeSize(aExeOutput: TExeOutput): QWord;