浏览代码

* ldf*/stf* can handle only offsets with max. +/- 1020, so generate never a pc relative symbol

git-svn-id: trunk@1649 -
florian 20 年之前
父节点
当前提交
12a1449884
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      compiler/arm/cgcpu.pas

+ 3 - 1
compiler/arm/cgcpu.pas

@@ -614,7 +614,9 @@ unit cgcpu;
            ) or
            ((op in [A_LDF,A_STF]) and
             ((ref.offset<-1020) or
-             (ref.offset>1020)
+             (ref.offset>1020) or
+             { the usual pc relative symbol handling assumes possible offsets of +/- 4095 }
+             assigned(ref.symbol)
             )
            ) then
           begin