瀏覽代碼

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

git-svn-id: trunk@31388 -
nickysn 10 年之前
父節點
當前提交
3d3eb6c472
共有 1 個文件被更改,包括 6 次插入1 次删除
  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);
                 exit;
               end;
+          end
+        else
+          begin
+            {todo: convert other fixup types as well }
+            InputError('Unsupported fixup target method '+IntToStr(Ord(Fixup.TargetMethod)));
+            exit;
           end;
-        {todo: convert other fixup types as well }
 
         Result:=True;
       end;