mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:07:53 +02:00
+ implemented R_WASM_MEMORY_ADDR_LEB relocations in the wasm internal linker
This commit is contained in:
parent
5771245d74
commit
b440f57739
@ -4307,6 +4307,13 @@ implementation
|
||||
internalerror(2024010108);
|
||||
end;
|
||||
end;
|
||||
RELOC_MEMORY_ADDR_LEB:
|
||||
begin
|
||||
if objsym.typ<>AT_DATA then
|
||||
internalerror(2024010109);
|
||||
objsec.Data.seek(objreloc.DataOffset);
|
||||
WriteUleb5(objsec.Data,UInt32((objsym.offset+objsym.objsection.MemPos)+objreloc.Addend));
|
||||
end;
|
||||
else
|
||||
Writeln('Symbol relocation not yet implemented! ', objreloc.typ);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user