소스 검색

* 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;