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-02-28 20:40:16 +01:00
parent 86609119e3
commit 2056d62065
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

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