Переглянути джерело

+ wasm internal linker: count the 'fpc.resources' section towards the binary
data size

Nikolay Nikolov 1 рік тому
батько
коміт
2828752587
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      compiler/systems/t_wasi.pas

+ 2 - 1
compiler/systems/t_wasi.pas

@@ -309,7 +309,8 @@ end;
 function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;
 begin
   Result:=aExeOutput.findexesection('.rodata').size +
-          aExeOutput.findexesection('.data').size;
+          aExeOutput.findexesection('.data').size +
+          aExeOutput.findexesection('fpc.resources').size;
 end;
 
 constructor TInternalLinkerWasi.create;