From bbebd09134910d9ec2ae2e8a278f00bad190d6fc Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 6 May 2020 12:16:03 +0900 Subject: [PATCH] libc: Rename assembly stub for SYS_EXIT from exit to _exit --- libc/posixcall.S | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/libc/posixcall.S b/libc/posixcall.S index 696d2ee..278d5a1 100644 --- a/libc/posixcall.S +++ b/libc/posixcall.S @@ -3,14 +3,14 @@ #include #include -/* FIXME: Add syscall stubs for amd64/Intel64 */ + /* FIXME: Add syscall stubs for amd64/Intel64 */ .global fork fork: pushl %ebx movl $SYS_FORK, %eax - int $SYSCALL_POSIX + int $SYSCALL_POSIX popl %ebx ret @@ -20,18 +20,18 @@ vfork: pushl %ebx movl $SYS_VFORK, %eax - int $SYSCALL_POSIX + int $SYSCALL_POSIX popl %ebx ret -.global exit -exit: +.global _exit +_exit: pushl %ebx movl $SYS_EXIT, %eax movl 8(%esp), %ebx - int $SYSCALL_POSIX + int $SYSCALL_POSIX popl %ebx ret @@ -50,8 +50,8 @@ execeve: popl %ebx ret -.global wait -wait: + .global wait + wait: pushl %ebx movl $SYS_WAIT, %eax @@ -61,8 +61,8 @@ wait: popl %ebx ret -.global waitpid -waitpid: + .global waitpid + waitpid: pushl %ebx movl $SYS_WAITPID, %eax @@ -74,8 +74,8 @@ waitpid: popl %ebx ret -.global waitid -waitid: + .global waitid + waitid: pushl %ebx movl $SYS_WAITID, %eax @@ -88,8 +88,8 @@ waitid: popl %ebx ret -.global setsid -setsid: + .global setsid + setsid: pushl %ebx movl $SYS_SETSID, %eax -- 2.47.3