Explorar o código

* Fix RIP relative assmebler code of rev 16410

git-svn-id: trunk@16414 -
pierre %!s(int64=15) %!d(string=hai) anos
pai
achega
ed1c558726
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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