+ support writing RELOC_FUNCTION_INDEX_LEB relocations to non-external functions

This commit is contained in:
Nikolay Nikolov 2021-09-26 05:15:50 +03:00
parent bf5048cb5e
commit 238d09d875

View File

@ -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);