소스 검색

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