Browse Source

* when building a reference with an identifier, initialize the operand so that page offsets of functions are handled correctly

git-svn-id: trunk@44933 -
svenbarth 5 years ago
parent
commit
26c45f550a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/aarch64/racpugas.pas

+ 4 - 1
compiler/aarch64/racpugas.pas

@@ -792,7 +792,10 @@ Unit racpugas;
                             Message1(sym_e_unknown_id,expr);
                             Message1(sym_e_unknown_id,expr);
                         end
                         end
                        else
                        else
-                         MaybeAddGotAddrMode;
+                         begin
+                           oper.InitRef;
+                           MaybeAddGotAddrMode;
+                         end;
                      end;
                      end;
                   end;
                   end;
                   if actasmtoken=AS_DOT then
                   if actasmtoken=AS_DOT then