2
0
Эх сурвалжийг харах

* 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 жил өмнө
parent
commit
5845bb9095
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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);