* 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:
nickysn 2019-03-19 18:28:20 +00:00
parent 4715ad605b
commit 2960399f9a

View File

@ -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';