Ensure __set_errno is still visible on LP32.

The use of the .hidden directive to avoid going via the PLT for
__set_errno had the side-effect of actually making __set_errno
hidden (which is odd because assembler directives don't usually
affect symbols defined in a different file --- you can't even
create a weak reference to a symbol that's defined in a different
file).

This change switches the system call stubs over to a new always-hidden
__set_errno_internal and has a visible __set_errno on LP32 just for
binary compatibility with old NDK apps.

Bug: 17423135
Change-Id: I6b6d7a05dda85f923d22e5ffd169a91e23499b7b
This commit is contained in:
Elliott Hughes 2014-09-08 15:25:01 -07:00
parent c8f6b82f87
commit 7efad83d43
1177 changed files with 1194 additions and 3506 deletions

View File

@ -57,7 +57,7 @@ ENTRY(__bionic_clone)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
1: # The child.
# Setting lr to 0 will make the unwinder stop at __start_thread

View File

@ -47,5 +47,5 @@ ENTRY(syscall)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(syscall)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__accept4)
mov ip, r7
ldr r7, =__NR_accept4
@ -12,5 +10,5 @@ ENTRY(__accept4)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__accept4)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__brk)
mov ip, r7
ldr r7, =__NR_brk
@ -12,5 +10,5 @@ ENTRY(__brk)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__brk)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__connect)
mov ip, r7
ldr r7, =__NR_connect
@ -12,5 +10,5 @@ ENTRY(__connect)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__connect)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__epoll_pwait)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(__epoll_pwait)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__epoll_pwait)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__exit)
mov ip, r7
ldr r7, =__NR_exit
@ -12,5 +10,5 @@ ENTRY(__exit)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__exit)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__fcntl64)
mov ip, r7
ldr r7, =__NR_fcntl64
@ -12,5 +10,5 @@ ENTRY(__fcntl64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__fcntl64)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__fstatfs64)
mov ip, r7
ldr r7, =__NR_fstatfs64
@ -12,5 +10,5 @@ ENTRY(__fstatfs64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__fstatfs64)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__getcpu)
mov ip, r7
ldr r7, =__NR_getcpu
@ -12,5 +10,5 @@ ENTRY(__getcpu)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__getcpu)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__getcwd)
mov ip, r7
ldr r7, =__NR_getcwd
@ -12,5 +10,5 @@ ENTRY(__getcwd)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__getcwd)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__getdents64)
mov ip, r7
ldr r7, =__NR_getdents64
@ -12,5 +10,5 @@ ENTRY(__getdents64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__getdents64)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__getpid)
mov ip, r7
ldr r7, =__NR_getpid
@ -12,5 +10,5 @@ ENTRY(__getpid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__getpid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__getpriority)
mov ip, r7
ldr r7, =__NR_getpriority
@ -12,5 +10,5 @@ ENTRY(__getpriority)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__getpriority)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__ioctl)
mov ip, r7
ldr r7, =__NR_ioctl
@ -12,5 +10,5 @@ ENTRY(__ioctl)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__ioctl)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__llseek)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(__llseek)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__llseek)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__mmap2)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(__mmap2)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__mmap2)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__openat)
mov ip, r7
ldr r7, =__NR_openat
@ -12,5 +10,5 @@ ENTRY(__openat)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__openat)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__ppoll)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(__ppoll)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__ppoll)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__pselect6)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(__pselect6)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__pselect6)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__ptrace)
mov ip, r7
ldr r7, =__NR_ptrace
@ -12,5 +10,5 @@ ENTRY(__ptrace)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__ptrace)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__reboot)
mov ip, r7
ldr r7, =__NR_reboot
@ -12,5 +10,5 @@ ENTRY(__reboot)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__reboot)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__rt_sigaction)
mov ip, r7
ldr r7, =__NR_rt_sigaction
@ -12,5 +10,5 @@ ENTRY(__rt_sigaction)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__rt_sigaction)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__rt_sigpending)
mov ip, r7
ldr r7, =__NR_rt_sigpending
@ -12,5 +10,5 @@ ENTRY(__rt_sigpending)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__rt_sigpending)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__rt_sigprocmask)
mov ip, r7
ldr r7, =__NR_rt_sigprocmask
@ -12,5 +10,5 @@ ENTRY(__rt_sigprocmask)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__rt_sigprocmask)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__rt_sigsuspend)
mov ip, r7
ldr r7, =__NR_rt_sigsuspend
@ -12,5 +10,5 @@ ENTRY(__rt_sigsuspend)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__rt_sigsuspend)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__rt_sigtimedwait)
mov ip, r7
ldr r7, =__NR_rt_sigtimedwait
@ -12,5 +10,5 @@ ENTRY(__rt_sigtimedwait)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__rt_sigtimedwait)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__sched_getaffinity)
mov ip, r7
ldr r7, =__NR_sched_getaffinity
@ -12,5 +10,5 @@ ENTRY(__sched_getaffinity)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__sched_getaffinity)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__set_tid_address)
mov ip, r7
ldr r7, =__NR_set_tid_address
@ -12,5 +10,5 @@ ENTRY(__set_tid_address)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__set_tid_address)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__set_tls)
mov ip, r7
ldr r7, =__ARM_NR_set_tls
@ -12,5 +10,5 @@ ENTRY(__set_tls)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__set_tls)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__sigaction)
mov ip, r7
ldr r7, =__NR_sigaction
@ -12,5 +10,5 @@ ENTRY(__sigaction)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__sigaction)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__signalfd4)
mov ip, r7
ldr r7, =__NR_signalfd4
@ -12,5 +10,5 @@ ENTRY(__signalfd4)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__signalfd4)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__socket)
mov ip, r7
ldr r7, =__NR_socket
@ -12,5 +10,5 @@ ENTRY(__socket)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__socket)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__statfs64)
mov ip, r7
ldr r7, =__NR_statfs64
@ -12,5 +10,5 @@ ENTRY(__statfs64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__statfs64)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__timer_create)
mov ip, r7
ldr r7, =__NR_timer_create
@ -12,5 +10,5 @@ ENTRY(__timer_create)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__timer_create)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__timer_delete)
mov ip, r7
ldr r7, =__NR_timer_delete
@ -12,5 +10,5 @@ ENTRY(__timer_delete)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__timer_delete)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__timer_getoverrun)
mov ip, r7
ldr r7, =__NR_timer_getoverrun
@ -12,5 +10,5 @@ ENTRY(__timer_getoverrun)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__timer_getoverrun)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__timer_gettime)
mov ip, r7
ldr r7, =__NR_timer_gettime
@ -12,5 +10,5 @@ ENTRY(__timer_gettime)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__timer_gettime)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__timer_settime)
mov ip, r7
ldr r7, =__NR_timer_settime
@ -12,5 +10,5 @@ ENTRY(__timer_settime)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__timer_settime)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(__waitid)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(__waitid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(__waitid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(_exit)
mov ip, r7
ldr r7, =__NR_exit_group
@ -12,7 +10,7 @@ ENTRY(_exit)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(_exit)
.globl _Exit

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(acct)
mov ip, r7
ldr r7, =__NR_acct
@ -12,5 +10,5 @@ ENTRY(acct)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(acct)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(bind)
mov ip, r7
ldr r7, =__NR_bind
@ -12,5 +10,5 @@ ENTRY(bind)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(bind)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(cacheflush)
mov ip, r7
ldr r7, =__ARM_NR_cacheflush
@ -12,5 +10,5 @@ ENTRY(cacheflush)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(cacheflush)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(capget)
mov ip, r7
ldr r7, =__NR_capget
@ -12,5 +10,5 @@ ENTRY(capget)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(capget)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(capset)
mov ip, r7
ldr r7, =__NR_capset
@ -12,5 +10,5 @@ ENTRY(capset)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(capset)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(chdir)
mov ip, r7
ldr r7, =__NR_chdir
@ -12,5 +10,5 @@ ENTRY(chdir)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(chdir)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(chroot)
mov ip, r7
ldr r7, =__NR_chroot
@ -12,5 +10,5 @@ ENTRY(chroot)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(chroot)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(clock_getres)
mov ip, r7
ldr r7, =__NR_clock_getres
@ -12,5 +10,5 @@ ENTRY(clock_getres)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(clock_getres)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(clock_gettime)
mov ip, r7
ldr r7, =__NR_clock_gettime
@ -12,5 +10,5 @@ ENTRY(clock_gettime)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(clock_gettime)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(clock_nanosleep)
mov ip, r7
ldr r7, =__NR_clock_nanosleep
@ -12,5 +10,5 @@ ENTRY(clock_nanosleep)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(clock_nanosleep)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(clock_settime)
mov ip, r7
ldr r7, =__NR_clock_settime
@ -12,5 +10,5 @@ ENTRY(clock_settime)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(clock_settime)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(close)
mov ip, r7
ldr r7, =__NR_close
@ -12,5 +10,5 @@ ENTRY(close)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(close)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(delete_module)
mov ip, r7
ldr r7, =__NR_delete_module
@ -12,5 +10,5 @@ ENTRY(delete_module)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(delete_module)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(dup)
mov ip, r7
ldr r7, =__NR_dup
@ -12,5 +10,5 @@ ENTRY(dup)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(dup)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(dup3)
mov ip, r7
ldr r7, =__NR_dup3
@ -12,5 +10,5 @@ ENTRY(dup3)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(dup3)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(epoll_create1)
mov ip, r7
ldr r7, =__NR_epoll_create1
@ -12,5 +10,5 @@ ENTRY(epoll_create1)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(epoll_create1)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(epoll_ctl)
mov ip, r7
ldr r7, =__NR_epoll_ctl
@ -12,5 +10,5 @@ ENTRY(epoll_ctl)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(epoll_ctl)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(eventfd)
mov ip, r7
ldr r7, =__NR_eventfd2
@ -12,5 +10,5 @@ ENTRY(eventfd)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(eventfd)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(execve)
mov ip, r7
ldr r7, =__NR_execve
@ -12,5 +10,5 @@ ENTRY(execve)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(execve)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(faccessat)
mov ip, r7
ldr r7, =__NR_faccessat
@ -12,5 +10,5 @@ ENTRY(faccessat)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(faccessat)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fallocate64)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(fallocate64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fallocate64)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fchdir)
mov ip, r7
ldr r7, =__NR_fchdir
@ -12,5 +10,5 @@ ENTRY(fchdir)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fchdir)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fchmod)
mov ip, r7
ldr r7, =__NR_fchmod
@ -12,5 +10,5 @@ ENTRY(fchmod)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fchmod)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fchmodat)
mov ip, r7
ldr r7, =__NR_fchmodat
@ -12,5 +10,5 @@ ENTRY(fchmodat)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fchmodat)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fchown)
mov ip, r7
ldr r7, =__NR_fchown32
@ -12,5 +10,5 @@ ENTRY(fchown)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fchown)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fchownat)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(fchownat)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fchownat)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fdatasync)
mov ip, r7
ldr r7, =__NR_fdatasync
@ -12,5 +10,5 @@ ENTRY(fdatasync)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fdatasync)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fgetxattr)
mov ip, r7
ldr r7, =__NR_fgetxattr
@ -12,5 +10,5 @@ ENTRY(fgetxattr)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fgetxattr)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(flistxattr)
mov ip, r7
ldr r7, =__NR_flistxattr
@ -12,5 +10,5 @@ ENTRY(flistxattr)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(flistxattr)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(flock)
mov ip, r7
ldr r7, =__NR_flock
@ -12,5 +10,5 @@ ENTRY(flock)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(flock)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fremovexattr)
mov ip, r7
ldr r7, =__NR_fremovexattr
@ -12,5 +10,5 @@ ENTRY(fremovexattr)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fremovexattr)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fsetxattr)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(fsetxattr)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fsetxattr)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fstat64)
mov ip, r7
ldr r7, =__NR_fstat64
@ -12,7 +10,7 @@ ENTRY(fstat64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fstat64)
.globl fstat

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fstatat64)
mov ip, r7
ldr r7, =__NR_fstatat64
@ -12,7 +10,7 @@ ENTRY(fstatat64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fstatat64)
.globl fstatat

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(fsync)
mov ip, r7
ldr r7, =__NR_fsync
@ -12,5 +10,5 @@ ENTRY(fsync)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(fsync)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(ftruncate)
mov ip, r7
ldr r7, =__NR_ftruncate
@ -12,5 +10,5 @@ ENTRY(ftruncate)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(ftruncate)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(ftruncate64)
mov ip, r7
ldr r7, =__NR_ftruncate64
@ -12,5 +10,5 @@ ENTRY(ftruncate64)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(ftruncate64)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getegid)
mov ip, r7
ldr r7, =__NR_getegid32
@ -12,5 +10,5 @@ ENTRY(getegid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getegid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(geteuid)
mov ip, r7
ldr r7, =__NR_geteuid32
@ -12,5 +10,5 @@ ENTRY(geteuid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(geteuid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getgid)
mov ip, r7
ldr r7, =__NR_getgid32
@ -12,5 +10,5 @@ ENTRY(getgid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getgid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getgroups)
mov ip, r7
ldr r7, =__NR_getgroups32
@ -12,5 +10,5 @@ ENTRY(getgroups)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getgroups)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getitimer)
mov ip, r7
ldr r7, =__NR_getitimer
@ -12,5 +10,5 @@ ENTRY(getitimer)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getitimer)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getpeername)
mov ip, r7
ldr r7, =__NR_getpeername
@ -12,5 +10,5 @@ ENTRY(getpeername)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getpeername)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getpgid)
mov ip, r7
ldr r7, =__NR_getpgid
@ -12,5 +10,5 @@ ENTRY(getpgid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getpgid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getppid)
mov ip, r7
ldr r7, =__NR_getppid
@ -12,5 +10,5 @@ ENTRY(getppid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getppid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getresgid)
mov ip, r7
ldr r7, =__NR_getresgid32
@ -12,5 +10,5 @@ ENTRY(getresgid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getresgid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getresuid)
mov ip, r7
ldr r7, =__NR_getresuid32
@ -12,5 +10,5 @@ ENTRY(getresuid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getresuid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getrlimit)
mov ip, r7
ldr r7, =__NR_ugetrlimit
@ -12,5 +10,5 @@ ENTRY(getrlimit)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getrlimit)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getrusage)
mov ip, r7
ldr r7, =__NR_getrusage
@ -12,5 +10,5 @@ ENTRY(getrusage)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getrusage)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getsid)
mov ip, r7
ldr r7, =__NR_getsid
@ -12,5 +10,5 @@ ENTRY(getsid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getsid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getsockname)
mov ip, r7
ldr r7, =__NR_getsockname
@ -12,5 +10,5 @@ ENTRY(getsockname)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getsockname)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getsockopt)
mov ip, sp
stmfd sp!, {r4, r5, r6, r7}
@ -20,5 +18,5 @@ ENTRY(getsockopt)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getsockopt)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(gettimeofday)
mov ip, r7
ldr r7, =__NR_gettimeofday
@ -12,5 +10,5 @@ ENTRY(gettimeofday)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(gettimeofday)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getuid)
mov ip, r7
ldr r7, =__NR_getuid32
@ -12,5 +10,5 @@ ENTRY(getuid)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getuid)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(getxattr)
mov ip, r7
ldr r7, =__NR_getxattr
@ -12,5 +10,5 @@ ENTRY(getxattr)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(getxattr)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(init_module)
mov ip, r7
ldr r7, =__NR_init_module
@ -12,5 +10,5 @@ ENTRY(init_module)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(init_module)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(inotify_add_watch)
mov ip, r7
ldr r7, =__NR_inotify_add_watch
@ -12,5 +10,5 @@ ENTRY(inotify_add_watch)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(inotify_add_watch)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(inotify_init1)
mov ip, r7
ldr r7, =__NR_inotify_init1
@ -12,5 +10,5 @@ ENTRY(inotify_init1)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(inotify_init1)

View File

@ -2,8 +2,6 @@
#include <private/bionic_asm.h>
.hidden __set_errno
ENTRY(inotify_rm_watch)
mov ip, r7
ldr r7, =__NR_inotify_rm_watch
@ -12,5 +10,5 @@ ENTRY(inotify_rm_watch)
cmn r0, #(MAX_ERRNO + 1)
bxls lr
neg r0, r0
b __set_errno
b __set_errno_internal
END(inotify_rm_watch)

Some files were not shown because too many files have changed in this diff Show More