Browse Source

* WebAssembly internal linker: add the .tbss section size to the result of GetBssSize

Nikolay Nikolov 1 year ago
parent
commit
7b05051fc1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/systems/t_wasi.pas

+ 1 - 0
compiler/systems/t_wasi.pas

@@ -378,6 +378,7 @@ end;
 function TInternalLinkerWasi.GetBssSize(aExeOutput: TExeOutput): QWord;
 begin
   Result:=GetExeSectionSize(aExeOutput,'.bss') +
+          GetExeSectionSize(aExeOutput,'.tbss') +
           GetExeSectionSize(aExeOutput,'fpc.reshandles');
 end;