mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 04:48:07 +02:00
+ implemented R_WASM_GLOBAL_INDEX_LEB relocations in the wasm internal linker
This commit is contained in:
parent
bbeb98aeef
commit
f48282d7b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user