scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 08f54b63417d00eff3ca95469a436888add76741
parent 3c6c5a02710e4d7a3da6121e9bfb8d2bc0d786dd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 17 May 2022 19:35:59 +0200

libc: Fix _Exit() in arm and arm64

Long time ago we were using _Exit like the name of the syscall
but we moved to use _exit and having a generic wrapper in
stdlib.h, but arm and arm64 remained the all names in the
syscall and it would drive to an unresolved symbol because
_exit was not defined in anyplace for these architectures
in linux.

Diffstat:
Msrc/libc/arch/arm/linux/syscall.lst | 2+-
Msrc/libc/arch/arm64/linux/syscall.lst | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libc/arch/arm/linux/syscall.lst b/src/libc/arch/arm/linux/syscall.lst @@ -4,7 +4,7 @@ 6 _close 3 _read 4 _write -1 _Exit +1 _exit 20 _getpid 37 _kill 19 _lseek diff --git a/src/libc/arch/arm64/linux/syscall.lst b/src/libc/arch/arm64/linux/syscall.lst @@ -4,7 +4,7 @@ 62 _lseek 63 _read 64 _write -93 _Exit +93 _exit 129 _kill 134 __sigaction 172 _getpid