2
0
Эх сурвалжийг харах

+ support writing RELOC_FUNCTION_INDEX_LEB relocations to non-external functions

Nikolay Nikolov 3 жил өмнө
parent
commit
238d09d875

+ 0 - 2
compiler/ogwasm.pas

@@ -524,8 +524,6 @@ implementation
                 internalerror(2021092503);
                 internalerror(2021092503);
               if not assigned(p) then
               if not assigned(p) then
                 internalerror(2021092504);
                 internalerror(2021092504);
-              if p.bind<>AB_EXTERNAL then
-                internalerror(2021092505);
               objreloc:=TWasmObjRelocation.CreateSymbol(CurrObjSec.Size,p,Reloctype);
               objreloc:=TWasmObjRelocation.CreateSymbol(CurrObjSec.Size,p,Reloctype);
               CurrObjSec.ObjRelocations.Add(objreloc);
               CurrObjSec.ObjRelocations.Add(objreloc);
               writebytes(leb_zero,5);
               writebytes(leb_zero,5);