Browse Source

* produce an internal error, instead of a warning in case of RELOC_FUNCTION_INDEX_LEB pointing to a function with missing ExeFunctionIndex

Nikolay Nikolov 1 year ago
parent
commit
5845bb9095
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ogwasm.pas

+ 1 - 1
compiler/ogwasm.pas

@@ -4154,7 +4154,7 @@ implementation
                           WriteUleb5(objsec.Data,objsym.LinkingData.ExeFunctionIndex);
                         end
                       else
-                        Writeln('RELOC_FUNCTION_INDEX_LEB to a function with unresolved index: ', objsym.Name);
+                        internalerror(2024010103);
                     end;
                   else
                     Writeln('Symbol relocation not yet implemented! ', objreloc.typ);