浏览代码

+ support writing RELOC_FUNCTION_INDEX_LEB relocations to non-external functions

Nikolay Nikolov 3 年之前
父节点
当前提交
238d09d875
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      compiler/ogwasm.pas

+ 0 - 2
compiler/ogwasm.pas

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