mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 03:29:41 +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));}
|
||||
__init;
|
||||
PascalMain;
|
||||
asm
|
||||
jmp _FPC_proc_haltproc
|
||||
end;
|
||||
c_exit(operatingsystem_result);
|
||||
end;
|
||||
|
||||
procedure _FPC_proc_haltproc; noreturn; public name '_haltproc';
|
||||
begin
|
||||
c_exit(operatingsystem_result);
|
||||
end;
|
||||
|
||||
function _strrchr(str: PChar; character: LongInt): PChar; public name '_strrchr';
|
||||
|
Loading…
Reference in New Issue
Block a user