Browse Source

* set TWasmObjSection.MainFuncSymbol in the wasm object reader

Nikolay Nikolov 1 year ago
parent
commit
946fc370e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/ogwasm.pas

+ 1 - 0
compiler/ogwasm.pas

@@ -3867,6 +3867,7 @@ implementation
                       objsym.bind:=AB_GLOBAL;
                       objsym.typ:=AT_FUNCTION;
                       objsym.objsection:=TObjSection(ObjData.ObjSectionList[SymIndex-FuncTypeImportsCount]);
+                      TWasmObjSection(ObjData.ObjSectionList[SymIndex-FuncTypeImportsCount]).MainFuncSymbol:=objsym;
                       objsym.offset:=0;
                       objsym.size:=objsym.objsection.Size;
                     end;