浏览代码

Accept range/overflow for address computation inside unit

git-svn-id: trunk@22507 -
pierre 13 年之前
父节点
当前提交
b851a5a065
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/ogcoff.pas

+ 4 - 0
compiler/ogcoff.pas

@@ -811,6 +811,10 @@ const pemagic : array[0..3] of byte = (
         write(offset,len);
       end;
 
+{ We don't want overflow nor range checks here,
+  wrapping is accepted in the address computation below }
+{$r-}
+{$q-}
 
     procedure TCoffExeOutput.DoRelocationFixup(objsec:TObjSection);
       var