* wasm internal linker: produce an error if an R_WASM_SECTION_OFFSET_I32 or an

R_WASM_TAG_INDEX_LEB relocations is encountered - these aren't implemented,
  and are not required for 'hello, world', so will be done later.
This commit is contained in:
Nikolay Nikolov 2024-01-01 17:12:07 +02:00
parent 4208fc79c7
commit e6a68b28b6

View File

@ -4071,10 +4071,18 @@ implementation
else
Writeln('Warning! No object symbol created for ', SymbolTable[RelocIndex].SymName);
end;
R_WASM_SECTION_OFFSET_I32,
R_WASM_GLOBAL_INDEX_LEB,
R_WASM_TAG_INDEX_LEB:
R_WASM_SECTION_OFFSET_I32:
begin
InputError('R_WASM_SECTION_OFFSET_I32 relocations not yet implemented');
exit;
end;
R_WASM_GLOBAL_INDEX_LEB:
{TODO};
R_WASM_TAG_INDEX_LEB:
begin
InputError('R_WASM_TAG_INDEX_LEB relocations not yet implemented');
exit;
end;
else
internalerror(2023122802);
end;