diff --git a/compiler/ogwasm.pas b/compiler/ogwasm.pas index 2b1e2c3e72..0d6d6183b1 100644 --- a/compiler/ogwasm.pas +++ b/compiler/ogwasm.pas @@ -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;