Browse Source

* 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 -

nickysn 6 years ago
parent
commit
2960399f9a
1 changed files with 1 additions and 4 deletions
  1. 1 4
      rtl/openbsd/x86_64/si_c.inc

+ 1 - 4
rtl/openbsd/x86_64/si_c.inc

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