mescc: Mes C Library: Bugfix for tcc-compiled exit assembly.

* lib/linux/x86-mes-gcc/mini.c (_exit): Add clobbered registers %eax,
%ebx.  Fixes always exit 1.
This commit is contained in:
Jan Nieuwenhuizen 2019-01-03 20:40:16 +01:00
parent ecf9220bbc
commit f87cef0a59
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ _exit (int code)
"int $0x80\n\t"
: // no outputs "=" (r)
: "rm" (code)
: "eax", "ebx"
);
// not reached
_exit (0);