Browse Source

* stop with an error when encountering omf fixups that aren't yet implemented

git-svn-id: trunk@31388 -
nickysn 10 years ago
parent
commit
3d3eb6c472
1 changed files with 6 additions and 1 deletions
  1. 6 1
      compiler/ogomf.pas

+ 6 - 1
compiler/ogomf.pas

@@ -1602,8 +1602,13 @@ implementation
                 InputError('Unsupported nonzero target displacement '+IntToStr(Fixup.TargetDisplacement)+' in external reference to '+sym.Name);
                 InputError('Unsupported nonzero target displacement '+IntToStr(Fixup.TargetDisplacement)+' in external reference to '+sym.Name);
                 exit;
                 exit;
               end;
               end;
+          end
+        else
+          begin
+            {todo: convert other fixup types as well }
+            InputError('Unsupported fixup target method '+IntToStr(Ord(Fixup.TargetMethod)));
+            exit;
           end;
           end;
-        {todo: convert other fixup types as well }
 
 
         Result:=True;
         Result:=True;
       end;
       end;