+ wasm internal linker: implemented RELOC_TAG_INDEX_LEB relocations

This commit is contained in:
Nikolay Nikolov 2024-01-07 02:39:57 +02:00
parent 4084da63ab
commit cd72a8910e

View File

@ -4956,6 +4956,13 @@ implementation
objsec.Data.seek(objreloc.DataOffset);
WriteUleb5(objsec.Data,UInt32(objsym.offset+objsym.objsection.MemPos));
end;
RELOC_TAG_INDEX_LEB:
begin
if objsym.typ<>AT_WASM_EXCEPTION_TAG then
internalerror(2024010708);
objsec.Data.seek(objreloc.DataOffset);
WriteUleb5(objsec.Data,UInt32(objsym.offset+objsym.objsection.MemPos));
end;
else
Writeln('Symbol relocation not yet implemented! ', objreloc.typ);
end;