Browse Source

* wasm internal linker: produce an internal error on unknown relocations

Nikolay Nikolov 1 year ago
parent
commit
93365f7e38
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/ogwasm.pas

+ 2 - 2
compiler/ogwasm.pas

@@ -4964,7 +4964,7 @@ implementation
                       WriteUleb5(objsec.Data,UInt32(objsym.offset+objsym.objsection.MemPos));
                     end;
                   else
-                    Writeln('Symbol relocation not yet implemented! ', objreloc.typ);
+                    internalerror(2024010109);
                 end;
               end
             else if assigned(objreloc.objsection) then
@@ -4981,7 +4981,7 @@ implementation
                 WriteUleb5(objsec.Data,objreloc.ExeTypeIndex);
               end
             else
-              Writeln('Non-symbol relocation not yet implemented! ', objreloc.typ);
+              internalerror(2024010110);
           end;
       end;