瀏覽代碼

* Fix RIP relative assmebler code of rev 16410

git-svn-id: trunk@16414 -
pierre 15 年之前
父節點
當前提交
ed1c558726
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      rtl/win64/system.pp

+ 4 - 0
rtl/win64/system.pp

@@ -409,7 +409,11 @@ procedure Exe_entry;[public,alias:'_FPC_EXE_Entry'];
           point to anything yet
           this will be used in signals unit }
         movq %rsp,%rax
+{$ifdef FPC_HAS_RIP_RELATIVE}
+        movq %rax,System_exception_frame(%rip)
+{$else}
         movq %rax,System_exception_frame
+{$endif}
         { keep stack aligned }
         pushq $0
         pushq %rbp