summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-10-24 22:36:58 -0700
committerElliott Hughes <enh@google.com>2013-10-24 22:41:50 -0700
commit6b53c2349a5a3fc70a475de6a66131b615e88e48 (patch)
tree3e06ca4bee68b07b1ea57cb564fed82333e997be /libc/arch-mips
parentbbefbf1a75052e4c887309299fb4532705aa843d (diff)
downloadbionic-6b53c2349a5a3fc70a475de6a66131b615e88e48.zip
bionic-6b53c2349a5a3fc70a475de6a66131b615e88e48.tar.gz
bionic-6b53c2349a5a3fc70a475de6a66131b615e88e48.tar.bz2
Fix the exit syscall stub's name.
I've left the exit_group syscall as _exit because otherwise we'd have to convince the compiler that our _exit (which just calls __exit_group) is actually "noreturn", and it seems like that would be less clean than just cutting out the middleman. We'll just have to trust ourselves not to add anything to SYSCALLS.TXT that ought to be private but that only has a single leading underscore. Hopefully we can manage that. Change-Id: Iac47faea9f516186e1774381846c54cafabc4354
Diffstat (limited to 'libc/arch-mips')
-rw-r--r--libc/arch-mips/syscalls.mk2
-rw-r--r--libc/arch-mips/syscalls/__exit.S (renamed from libc/arch-mips/syscalls/_exit_thread.S)8
2 files changed, 5 insertions, 5 deletions
diff --git a/libc/arch-mips/syscalls.mk b/libc/arch-mips/syscalls.mk
index e1c106c..6882877 100644
--- a/libc/arch-mips/syscalls.mk
+++ b/libc/arch-mips/syscalls.mk
@@ -3,6 +3,7 @@ syscall_src :=
syscall_src += arch-mips/syscalls/__brk.S
syscall_src += arch-mips/syscalls/__clone.S
syscall_src += arch-mips/syscalls/__epoll_pwait.S
+syscall_src += arch-mips/syscalls/__exit.S
syscall_src += arch-mips/syscalls/__fcntl.S
syscall_src += arch-mips/syscalls/__fcntl64.S
syscall_src += arch-mips/syscalls/__fstatfs64.S
@@ -34,7 +35,6 @@ syscall_src += arch-mips/syscalls/__timer_gettime.S
syscall_src += arch-mips/syscalls/__timer_settime.S
syscall_src += arch-mips/syscalls/__waitid.S
syscall_src += arch-mips/syscalls/_exit.S
-syscall_src += arch-mips/syscalls/_exit_thread.S
syscall_src += arch-mips/syscalls/_flush_cache.S
syscall_src += arch-mips/syscalls/accept.S
syscall_src += arch-mips/syscalls/acct.S
diff --git a/libc/arch-mips/syscalls/_exit_thread.S b/libc/arch-mips/syscalls/__exit.S
index 1ed8ffc3..529e49c 100644
--- a/libc/arch-mips/syscalls/_exit_thread.S
+++ b/libc/arch-mips/syscalls/__exit.S
@@ -2,11 +2,11 @@
#include <asm/unistd.h>
.text
- .globl _exit_thread
+ .globl __exit
.align 4
- .ent _exit_thread
+ .ent __exit
-_exit_thread:
+__exit:
.set noreorder
.cpload $t9
li $v0, __NR_exit
@@ -20,4 +20,4 @@ _exit_thread:
j $t9
nop
.set reorder
- .end _exit_thread
+ .end __exit