mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 17:30:38 +02:00
+ implemented R_WASM_MEMORY_ADDR_I32 relocations in the wasm internal linker
This commit is contained in:
parent
12d7d271d6
commit
1b2d29ea1a
@ -4235,6 +4235,22 @@ implementation
|
||||
objsec.Data.seek(objreloc.DataOffset);
|
||||
WriteUleb5(objsec.Data,objsym.LinkingData.ExeFunctionIndex);
|
||||
end;
|
||||
RELOC_ABSOLUTE:
|
||||
begin
|
||||
case objsym.typ of
|
||||
AT_FUNCTION:
|
||||
begin
|
||||
Writeln('TODO: function table index');
|
||||
end;
|
||||
AT_DATA:
|
||||
begin
|
||||
objsec.Data.seek(objreloc.DataOffset);
|
||||
objsec.writeUInt32LE(UInt32((objsym.offset+objsym.objsection.MemPos)+objreloc.Addend));
|
||||
end;
|
||||
else
|
||||
internalerror(2024010108);
|
||||
end;
|
||||
end;
|
||||
else
|
||||
Writeln('Symbol relocation not yet implemented! ', objreloc.typ);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user