Browse Source

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

git-svn-id: trunk@1649 -
florian 20 years ago
parent
commit
12a1449884
1 changed files with 3 additions and 1 deletions
  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