+ implemented R_WASM_GLOBAL_INDEX_LEB relocations in the wasm internal linker

This commit is contained in:
Nikolay Nikolov 2024-01-01 20:09:04 +02:00
parent bbeb98aeef
commit f48282d7b3

View File

@ -4403,6 +4403,13 @@ implementation
internalerror(2024010110);
end;
end;
RELOC_GLOBAL_INDEX_LEB:
begin
if objsym.typ<>AT_WASM_GLOBAL then
internalerror(2024010111);
objsec.Data.seek(objreloc.DataOffset);
WriteUleb5(objsec.Data,UInt32(objsym.offset));
end;
else
Writeln('Symbol relocation not yet implemented! ', objreloc.typ);
end;