mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 22:06:40 +02:00
* call c_exit directly in case PASCALMAIN finishes, to avoid inline asm entirely
in the _FPC_proc___start routine in the libc version of the OpenBSD startup code for x86_64 git-svn-id: trunk@41745 -
This commit is contained in:
parent
4715ad605b
commit
2960399f9a
@ -78,14 +78,11 @@ procedure _FPC_proc___start(argc: LongInt; argv: PPChar; envp: Pointer; para1, p
|
|||||||
monstartup(u_long(@_eprol),u_long(@_etext));}
|
monstartup(u_long(@_eprol),u_long(@_etext));}
|
||||||
__init;
|
__init;
|
||||||
PascalMain;
|
PascalMain;
|
||||||
asm
|
c_exit(operatingsystem_result);
|
||||||
jmp _FPC_proc_haltproc
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure _FPC_proc_haltproc; noreturn; public name '_haltproc';
|
procedure _FPC_proc_haltproc; noreturn; public name '_haltproc';
|
||||||
begin
|
begin
|
||||||
c_exit(operatingsystem_result);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function _strrchr(str: PChar; character: LongInt): PChar; public name '_strrchr';
|
function _strrchr(str: PChar; character: LongInt): PChar; public name '_strrchr';
|
||||||
|
Loading…
Reference in New Issue
Block a user