246e17
commit bbfc0f0f8e30680437d1c5b90563018bcd403881
246e17
Author: H.J. Lu <hjl.tools@gmail.com>
246e17
Date:   Sat Feb 1 05:44:56 2020 -0800
246e17
246e17
    i386: Remove _exit.S
246e17
    
246e17
    The generic implementation is suffice since __NR_exit_group is always
246e17
    support and i386 does define ABORT_INSTRUCTION.
246e17
    
246e17
    Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
246e17
---
246e17
246e17
diff --git a/sysdeps/unix/sysv/linux/i386/_exit.S b/sysdeps/unix/sysv/linux/i386/_exit.S
246e17
deleted file mode 100644
246e17
index a10eede..0000000
246e17
--- a/sysdeps/unix/sysv/linux/i386/_exit.S
246e17
+++ /dev/null
246e17
@@ -1,44 +0,0 @@
246e17
-/* Copyright (C) 2002-2018 Free Software Foundation, Inc.
246e17
-   This file is part of the GNU C Library.
246e17
-
246e17
-   The GNU C Library is free software; you can redistribute it and/or
246e17
-   modify it under the terms of the GNU Lesser General Public
246e17
-   License as published by the Free Software Foundation; either
246e17
-   version 2.1 of the License, or (at your option) any later version.
246e17
-
246e17
-   The GNU C Library is distributed in the hope that it will be useful,
246e17
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
246e17
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
246e17
-   Lesser General Public License for more details.
246e17
-
246e17
-   You should have received a copy of the GNU Lesser General Public
246e17
-   License along with the GNU C Library; if not, see
246e17
-   <http://www.gnu.org/licenses/>.  */
246e17
-
246e17
-#include <sysdep.h>
246e17
-
246e17
-	.text
246e17
-	.type	_exit,@function
246e17
-	.global	_exit
246e17
-_exit:
246e17
-	movl	4(%esp), %ebx
246e17
-
246e17
-	/* Try the new syscall first.  */
246e17
-#ifdef __NR_exit_group
246e17
-	movl	$__NR_exit_group, %eax
246e17
-	ENTER_KERNEL
246e17
-#endif
246e17
-
246e17
-	/* Not available.  Now the old one.  */
246e17
-	movl	$__NR_exit, %eax
246e17
-	/* Don't bother using ENTER_KERNEL here.  If the exit_group
246e17
-	   syscall is not available AT_SYSINFO isn't either.  */
246e17
-	int	$0x80
246e17
-
246e17
-	/* This must not fail.  Be sure we don't return.  */
246e17
-	hlt
246e17
-	.size	_exit,.-_exit
246e17
-
246e17
-libc_hidden_def (_exit)
246e17
-rtld_hidden_def (_exit)
246e17
-weak_alias (_exit, _Exit)
246e17