mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:49:23 +02:00
+ create relocation objects for R_WASM_TABLE_INDEX_I32 relocations in the wasm object reader
This commit is contained in:
parent
c605da6ab3
commit
118e093c97
@ -3837,6 +3837,18 @@ implementation
|
|||||||
else
|
else
|
||||||
Writeln('Warning! No object symbol created for ', SymbolTable[RelocIndex].SymName);
|
Writeln('Warning! No object symbol created for ', SymbolTable[RelocIndex].SymName);
|
||||||
end;
|
end;
|
||||||
|
R_WASM_TABLE_INDEX_I32:
|
||||||
|
begin
|
||||||
|
if RelocIndex>high(SymbolTable) then
|
||||||
|
begin
|
||||||
|
InputError('Symbol index in relocation too high');
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
if Assigned(SymbolTable[RelocIndex].ObjSym) then
|
||||||
|
ObjSec.ObjRelocations.Add(TWasmObjRelocation.CreateSymbol(RelocOffset-BaseSectionOffset,SymbolTable[RelocIndex].ObjSym,RELOC_ABSOLUTE))
|
||||||
|
else
|
||||||
|
Writeln('Warning! No object symbol created for ', SymbolTable[RelocIndex].SymName);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user