浏览代码

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