mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 17:21:20 +02:00
Fix si_g.inc for x86_64-linux:
* it's 'atexit' and not '__libc_atexit' * initialstkptr is a global symbol so it needs to be loaded using GOTPCREL git-svn-id: trunk@34235 -
This commit is contained in:
parent
78f42bae3f
commit
7f5352280d
@ -44,7 +44,7 @@ var
|
||||
|
||||
fpc_ret,fpc_ret_rbp : pointer;
|
||||
|
||||
procedure libc_atexit; external name '__libc_atexit';
|
||||
procedure libc_atexit; external name 'atexit';
|
||||
procedure libc_exit; external name '__libc_exit';
|
||||
procedure libc_init; external name '__libc_init';
|
||||
procedure libc_setfpucw; external name '__setfpucw';
|
||||
@ -155,7 +155,7 @@ procedure main_stub; assembler; nostackframe;
|
||||
movq gmon_mcleanup@GOTPCREL(%rip),%rdi
|
||||
call libc_atexit@PLT
|
||||
{ Save initial stackpointer }
|
||||
movq initialstkptr(%rip),%rax
|
||||
movq initialstkptr@GOTPCREL(%rip),%rax
|
||||
movq %rsp,(%rax)
|
||||
|
||||
{ start the program }
|
||||
|
Loading…
Reference in New Issue
Block a user