diff options
author | Dan Albert <danalbert@google.com> | 2014-08-07 10:46:42 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-08-07 16:21:47 -0700 |
commit | 512bc5232689bec9c763c8247b59de970096ff87 (patch) | |
tree | e51f699b4bad5d59ea915bbea29dc4801eb5409c /libc/arch-x86_64 | |
parent | d994622ebf2c4b7e918d9e1f1840f9df88ee7222 (diff) | |
download | bionic-512bc5232689bec9c763c8247b59de970096ff87.zip bionic-512bc5232689bec9c763c8247b59de970096ff87.tar.gz bionic-512bc5232689bec9c763c8247b59de970096ff87.tar.bz2 |
Fix incorrect relocations for x86.
These calls were not going through the PLT like they should have been.
Bug: 16853291
Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c
Diffstat (limited to 'libc/arch-x86_64')
190 files changed, 190 insertions, 190 deletions
diff --git a/libc/arch-x86_64/syscalls/__accept4.S b/libc/arch-x86_64/syscalls/__accept4.S index 375a78b..c566b83 100644 --- a/libc/arch-x86_64/syscalls/__accept4.S +++ b/libc/arch-x86_64/syscalls/__accept4.S @@ -10,7 +10,7 @@ ENTRY(__accept4) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__accept4) diff --git a/libc/arch-x86_64/syscalls/__arch_prctl.S b/libc/arch-x86_64/syscalls/__arch_prctl.S index 6c72a6c..5990ad1 100644 --- a/libc/arch-x86_64/syscalls/__arch_prctl.S +++ b/libc/arch-x86_64/syscalls/__arch_prctl.S @@ -9,7 +9,7 @@ ENTRY(__arch_prctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__arch_prctl) diff --git a/libc/arch-x86_64/syscalls/__brk.S b/libc/arch-x86_64/syscalls/__brk.S index 18ebc10..61c41d4 100644 --- a/libc/arch-x86_64/syscalls/__brk.S +++ b/libc/arch-x86_64/syscalls/__brk.S @@ -9,7 +9,7 @@ ENTRY(__brk) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__brk) diff --git a/libc/arch-x86_64/syscalls/__clock_gettime.S b/libc/arch-x86_64/syscalls/__clock_gettime.S index 7e553b8..1088bac 100644 --- a/libc/arch-x86_64/syscalls/__clock_gettime.S +++ b/libc/arch-x86_64/syscalls/__clock_gettime.S @@ -9,7 +9,7 @@ ENTRY(__clock_gettime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__clock_gettime) diff --git a/libc/arch-x86_64/syscalls/__connect.S b/libc/arch-x86_64/syscalls/__connect.S index a7d2e93..08600a2 100644 --- a/libc/arch-x86_64/syscalls/__connect.S +++ b/libc/arch-x86_64/syscalls/__connect.S @@ -9,7 +9,7 @@ ENTRY(__connect) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__connect) diff --git a/libc/arch-x86_64/syscalls/__epoll_pwait.S b/libc/arch-x86_64/syscalls/__epoll_pwait.S index 4271b53..b2de8a3 100644 --- a/libc/arch-x86_64/syscalls/__epoll_pwait.S +++ b/libc/arch-x86_64/syscalls/__epoll_pwait.S @@ -10,7 +10,7 @@ ENTRY(__epoll_pwait) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__epoll_pwait) diff --git a/libc/arch-x86_64/syscalls/__exit.S b/libc/arch-x86_64/syscalls/__exit.S index bcbaffc..38957db 100644 --- a/libc/arch-x86_64/syscalls/__exit.S +++ b/libc/arch-x86_64/syscalls/__exit.S @@ -9,7 +9,7 @@ ENTRY(__exit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__exit) diff --git a/libc/arch-x86_64/syscalls/__getcpu.S b/libc/arch-x86_64/syscalls/__getcpu.S index c25f294..3c4a868 100644 --- a/libc/arch-x86_64/syscalls/__getcpu.S +++ b/libc/arch-x86_64/syscalls/__getcpu.S @@ -9,7 +9,7 @@ ENTRY(__getcpu) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__getcpu) diff --git a/libc/arch-x86_64/syscalls/__getcwd.S b/libc/arch-x86_64/syscalls/__getcwd.S index 1743838..046e4de 100644 --- a/libc/arch-x86_64/syscalls/__getcwd.S +++ b/libc/arch-x86_64/syscalls/__getcwd.S @@ -9,7 +9,7 @@ ENTRY(__getcwd) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__getcwd) diff --git a/libc/arch-x86_64/syscalls/__getdents64.S b/libc/arch-x86_64/syscalls/__getdents64.S index 64f82fd..f94863f 100644 --- a/libc/arch-x86_64/syscalls/__getdents64.S +++ b/libc/arch-x86_64/syscalls/__getdents64.S @@ -9,7 +9,7 @@ ENTRY(__getdents64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__getdents64) diff --git a/libc/arch-x86_64/syscalls/__getpid.S b/libc/arch-x86_64/syscalls/__getpid.S index bd1bf1e..69e3c5c 100644 --- a/libc/arch-x86_64/syscalls/__getpid.S +++ b/libc/arch-x86_64/syscalls/__getpid.S @@ -9,7 +9,7 @@ ENTRY(__getpid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__getpid) diff --git a/libc/arch-x86_64/syscalls/__getpriority.S b/libc/arch-x86_64/syscalls/__getpriority.S index 349f574..8a9b109 100644 --- a/libc/arch-x86_64/syscalls/__getpriority.S +++ b/libc/arch-x86_64/syscalls/__getpriority.S @@ -9,7 +9,7 @@ ENTRY(__getpriority) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__getpriority) diff --git a/libc/arch-x86_64/syscalls/__gettimeofday.S b/libc/arch-x86_64/syscalls/__gettimeofday.S index a38eb64..3a6124a 100644 --- a/libc/arch-x86_64/syscalls/__gettimeofday.S +++ b/libc/arch-x86_64/syscalls/__gettimeofday.S @@ -9,7 +9,7 @@ ENTRY(__gettimeofday) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__gettimeofday) diff --git a/libc/arch-x86_64/syscalls/__ioctl.S b/libc/arch-x86_64/syscalls/__ioctl.S index 2775911..240a121 100644 --- a/libc/arch-x86_64/syscalls/__ioctl.S +++ b/libc/arch-x86_64/syscalls/__ioctl.S @@ -9,7 +9,7 @@ ENTRY(__ioctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__ioctl) diff --git a/libc/arch-x86_64/syscalls/__openat.S b/libc/arch-x86_64/syscalls/__openat.S index dce4c7c..d0762d7 100644 --- a/libc/arch-x86_64/syscalls/__openat.S +++ b/libc/arch-x86_64/syscalls/__openat.S @@ -10,7 +10,7 @@ ENTRY(__openat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__openat) diff --git a/libc/arch-x86_64/syscalls/__ppoll.S b/libc/arch-x86_64/syscalls/__ppoll.S index 31ba7e9..439a000 100644 --- a/libc/arch-x86_64/syscalls/__ppoll.S +++ b/libc/arch-x86_64/syscalls/__ppoll.S @@ -10,7 +10,7 @@ ENTRY(__ppoll) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__ppoll) diff --git a/libc/arch-x86_64/syscalls/__pselect6.S b/libc/arch-x86_64/syscalls/__pselect6.S index a212c4e..c178003 100644 --- a/libc/arch-x86_64/syscalls/__pselect6.S +++ b/libc/arch-x86_64/syscalls/__pselect6.S @@ -10,7 +10,7 @@ ENTRY(__pselect6) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__pselect6) diff --git a/libc/arch-x86_64/syscalls/__ptrace.S b/libc/arch-x86_64/syscalls/__ptrace.S index 0a64fee..ea88847 100644 --- a/libc/arch-x86_64/syscalls/__ptrace.S +++ b/libc/arch-x86_64/syscalls/__ptrace.S @@ -10,7 +10,7 @@ ENTRY(__ptrace) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__ptrace) diff --git a/libc/arch-x86_64/syscalls/__reboot.S b/libc/arch-x86_64/syscalls/__reboot.S index 398d078..ef4ecfb 100644 --- a/libc/arch-x86_64/syscalls/__reboot.S +++ b/libc/arch-x86_64/syscalls/__reboot.S @@ -10,7 +10,7 @@ ENTRY(__reboot) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__reboot) diff --git a/libc/arch-x86_64/syscalls/__rt_sigaction.S b/libc/arch-x86_64/syscalls/__rt_sigaction.S index f146b02..55aaa18 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigaction.S +++ b/libc/arch-x86_64/syscalls/__rt_sigaction.S @@ -10,7 +10,7 @@ ENTRY(__rt_sigaction) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__rt_sigaction) diff --git a/libc/arch-x86_64/syscalls/__rt_sigpending.S b/libc/arch-x86_64/syscalls/__rt_sigpending.S index 9d1698b..48b29fc 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigpending.S +++ b/libc/arch-x86_64/syscalls/__rt_sigpending.S @@ -9,7 +9,7 @@ ENTRY(__rt_sigpending) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__rt_sigpending) diff --git a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S index 1ac9b81..43cd53e 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S @@ -10,7 +10,7 @@ ENTRY(__rt_sigprocmask) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__rt_sigprocmask) diff --git a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S index 1059f0b..0a69aaf 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S @@ -9,7 +9,7 @@ ENTRY(__rt_sigsuspend) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__rt_sigsuspend) diff --git a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S index de2e4cb..88a5258 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S @@ -10,7 +10,7 @@ ENTRY(__rt_sigtimedwait) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__rt_sigtimedwait) diff --git a/libc/arch-x86_64/syscalls/__sched_getaffinity.S b/libc/arch-x86_64/syscalls/__sched_getaffinity.S index 410954c..194f527 100644 --- a/libc/arch-x86_64/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86_64/syscalls/__sched_getaffinity.S @@ -9,7 +9,7 @@ ENTRY(__sched_getaffinity) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__sched_getaffinity) diff --git a/libc/arch-x86_64/syscalls/__set_tid_address.S b/libc/arch-x86_64/syscalls/__set_tid_address.S index c59c8b8..193dfb7 100644 --- a/libc/arch-x86_64/syscalls/__set_tid_address.S +++ b/libc/arch-x86_64/syscalls/__set_tid_address.S @@ -9,7 +9,7 @@ ENTRY(__set_tid_address) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__set_tid_address) diff --git a/libc/arch-x86_64/syscalls/__signalfd4.S b/libc/arch-x86_64/syscalls/__signalfd4.S index 6ddcf5a..6becc9f 100644 --- a/libc/arch-x86_64/syscalls/__signalfd4.S +++ b/libc/arch-x86_64/syscalls/__signalfd4.S @@ -10,7 +10,7 @@ ENTRY(__signalfd4) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__signalfd4) diff --git a/libc/arch-x86_64/syscalls/__socket.S b/libc/arch-x86_64/syscalls/__socket.S index 209e329..e1a2df9 100644 --- a/libc/arch-x86_64/syscalls/__socket.S +++ b/libc/arch-x86_64/syscalls/__socket.S @@ -9,7 +9,7 @@ ENTRY(__socket) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__socket) diff --git a/libc/arch-x86_64/syscalls/__timer_create.S b/libc/arch-x86_64/syscalls/__timer_create.S index 3450d2b..8e4a4be 100644 --- a/libc/arch-x86_64/syscalls/__timer_create.S +++ b/libc/arch-x86_64/syscalls/__timer_create.S @@ -9,7 +9,7 @@ ENTRY(__timer_create) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__timer_create) diff --git a/libc/arch-x86_64/syscalls/__timer_delete.S b/libc/arch-x86_64/syscalls/__timer_delete.S index fd60a16..5e93a02 100644 --- a/libc/arch-x86_64/syscalls/__timer_delete.S +++ b/libc/arch-x86_64/syscalls/__timer_delete.S @@ -9,7 +9,7 @@ ENTRY(__timer_delete) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__timer_delete) diff --git a/libc/arch-x86_64/syscalls/__timer_getoverrun.S b/libc/arch-x86_64/syscalls/__timer_getoverrun.S index f5309a3..d17edac 100644 --- a/libc/arch-x86_64/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86_64/syscalls/__timer_getoverrun.S @@ -9,7 +9,7 @@ ENTRY(__timer_getoverrun) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__timer_getoverrun) diff --git a/libc/arch-x86_64/syscalls/__timer_gettime.S b/libc/arch-x86_64/syscalls/__timer_gettime.S index 7e2bc92..6c50bf0 100644 --- a/libc/arch-x86_64/syscalls/__timer_gettime.S +++ b/libc/arch-x86_64/syscalls/__timer_gettime.S @@ -9,7 +9,7 @@ ENTRY(__timer_gettime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__timer_gettime) diff --git a/libc/arch-x86_64/syscalls/__timer_settime.S b/libc/arch-x86_64/syscalls/__timer_settime.S index f5401a0..e57cc94 100644 --- a/libc/arch-x86_64/syscalls/__timer_settime.S +++ b/libc/arch-x86_64/syscalls/__timer_settime.S @@ -10,7 +10,7 @@ ENTRY(__timer_settime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__timer_settime) diff --git a/libc/arch-x86_64/syscalls/__waitid.S b/libc/arch-x86_64/syscalls/__waitid.S index 229f20c..e34ab53 100644 --- a/libc/arch-x86_64/syscalls/__waitid.S +++ b/libc/arch-x86_64/syscalls/__waitid.S @@ -10,7 +10,7 @@ ENTRY(__waitid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(__waitid) diff --git a/libc/arch-x86_64/syscalls/_exit.S b/libc/arch-x86_64/syscalls/_exit.S index 9c80f00..2ad61c0 100644 --- a/libc/arch-x86_64/syscalls/_exit.S +++ b/libc/arch-x86_64/syscalls/_exit.S @@ -9,7 +9,7 @@ ENTRY(_exit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(_exit) diff --git a/libc/arch-x86_64/syscalls/acct.S b/libc/arch-x86_64/syscalls/acct.S index 91ecf5b..221a1bf 100644 --- a/libc/arch-x86_64/syscalls/acct.S +++ b/libc/arch-x86_64/syscalls/acct.S @@ -9,7 +9,7 @@ ENTRY(acct) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(acct) diff --git a/libc/arch-x86_64/syscalls/bind.S b/libc/arch-x86_64/syscalls/bind.S index 5d426cb..223ec8c 100644 --- a/libc/arch-x86_64/syscalls/bind.S +++ b/libc/arch-x86_64/syscalls/bind.S @@ -9,7 +9,7 @@ ENTRY(bind) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(bind) diff --git a/libc/arch-x86_64/syscalls/capget.S b/libc/arch-x86_64/syscalls/capget.S index d3d151e..1c8eb8c 100644 --- a/libc/arch-x86_64/syscalls/capget.S +++ b/libc/arch-x86_64/syscalls/capget.S @@ -9,7 +9,7 @@ ENTRY(capget) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(capget) diff --git a/libc/arch-x86_64/syscalls/capset.S b/libc/arch-x86_64/syscalls/capset.S index 421f156..b7356de 100644 --- a/libc/arch-x86_64/syscalls/capset.S +++ b/libc/arch-x86_64/syscalls/capset.S @@ -9,7 +9,7 @@ ENTRY(capset) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(capset) diff --git a/libc/arch-x86_64/syscalls/chdir.S b/libc/arch-x86_64/syscalls/chdir.S index 7a6f651..6735af6 100644 --- a/libc/arch-x86_64/syscalls/chdir.S +++ b/libc/arch-x86_64/syscalls/chdir.S @@ -9,7 +9,7 @@ ENTRY(chdir) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(chdir) diff --git a/libc/arch-x86_64/syscalls/chroot.S b/libc/arch-x86_64/syscalls/chroot.S index 0f53fd9..95bec09 100644 --- a/libc/arch-x86_64/syscalls/chroot.S +++ b/libc/arch-x86_64/syscalls/chroot.S @@ -9,7 +9,7 @@ ENTRY(chroot) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(chroot) diff --git a/libc/arch-x86_64/syscalls/clock_getres.S b/libc/arch-x86_64/syscalls/clock_getres.S index bad0d78..c89c9ba 100644 --- a/libc/arch-x86_64/syscalls/clock_getres.S +++ b/libc/arch-x86_64/syscalls/clock_getres.S @@ -9,7 +9,7 @@ ENTRY(clock_getres) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(clock_getres) diff --git a/libc/arch-x86_64/syscalls/clock_nanosleep.S b/libc/arch-x86_64/syscalls/clock_nanosleep.S index 2ef0d05..4cd3dfe 100644 --- a/libc/arch-x86_64/syscalls/clock_nanosleep.S +++ b/libc/arch-x86_64/syscalls/clock_nanosleep.S @@ -10,7 +10,7 @@ ENTRY(clock_nanosleep) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(clock_nanosleep) diff --git a/libc/arch-x86_64/syscalls/clock_settime.S b/libc/arch-x86_64/syscalls/clock_settime.S index 6a3b75b..49084ec 100644 --- a/libc/arch-x86_64/syscalls/clock_settime.S +++ b/libc/arch-x86_64/syscalls/clock_settime.S @@ -9,7 +9,7 @@ ENTRY(clock_settime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(clock_settime) diff --git a/libc/arch-x86_64/syscalls/close.S b/libc/arch-x86_64/syscalls/close.S index 41c8403..c7e32f3 100644 --- a/libc/arch-x86_64/syscalls/close.S +++ b/libc/arch-x86_64/syscalls/close.S @@ -9,7 +9,7 @@ ENTRY(close) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(close) diff --git a/libc/arch-x86_64/syscalls/delete_module.S b/libc/arch-x86_64/syscalls/delete_module.S index d3f3862..ea6684d 100644 --- a/libc/arch-x86_64/syscalls/delete_module.S +++ b/libc/arch-x86_64/syscalls/delete_module.S @@ -9,7 +9,7 @@ ENTRY(delete_module) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(delete_module) diff --git a/libc/arch-x86_64/syscalls/dup.S b/libc/arch-x86_64/syscalls/dup.S index bf2ca51..e4e9406 100644 --- a/libc/arch-x86_64/syscalls/dup.S +++ b/libc/arch-x86_64/syscalls/dup.S @@ -9,7 +9,7 @@ ENTRY(dup) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(dup) diff --git a/libc/arch-x86_64/syscalls/dup3.S b/libc/arch-x86_64/syscalls/dup3.S index f5c929c..63c20b9 100644 --- a/libc/arch-x86_64/syscalls/dup3.S +++ b/libc/arch-x86_64/syscalls/dup3.S @@ -9,7 +9,7 @@ ENTRY(dup3) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(dup3) diff --git a/libc/arch-x86_64/syscalls/epoll_create1.S b/libc/arch-x86_64/syscalls/epoll_create1.S index 196a3c7..4eaf0ff 100644 --- a/libc/arch-x86_64/syscalls/epoll_create1.S +++ b/libc/arch-x86_64/syscalls/epoll_create1.S @@ -9,7 +9,7 @@ ENTRY(epoll_create1) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(epoll_create1) diff --git a/libc/arch-x86_64/syscalls/epoll_ctl.S b/libc/arch-x86_64/syscalls/epoll_ctl.S index 2a3517c..7903223 100644 --- a/libc/arch-x86_64/syscalls/epoll_ctl.S +++ b/libc/arch-x86_64/syscalls/epoll_ctl.S @@ -10,7 +10,7 @@ ENTRY(epoll_ctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(epoll_ctl) diff --git a/libc/arch-x86_64/syscalls/eventfd.S b/libc/arch-x86_64/syscalls/eventfd.S index 3ed4baf..10d8b85 100644 --- a/libc/arch-x86_64/syscalls/eventfd.S +++ b/libc/arch-x86_64/syscalls/eventfd.S @@ -9,7 +9,7 @@ ENTRY(eventfd) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(eventfd) diff --git a/libc/arch-x86_64/syscalls/execve.S b/libc/arch-x86_64/syscalls/execve.S index 1fe29c7..218329c 100644 --- a/libc/arch-x86_64/syscalls/execve.S +++ b/libc/arch-x86_64/syscalls/execve.S @@ -9,7 +9,7 @@ ENTRY(execve) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(execve) diff --git a/libc/arch-x86_64/syscalls/faccessat.S b/libc/arch-x86_64/syscalls/faccessat.S index 3ea905c..dd908e3 100644 --- a/libc/arch-x86_64/syscalls/faccessat.S +++ b/libc/arch-x86_64/syscalls/faccessat.S @@ -10,7 +10,7 @@ ENTRY(faccessat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(faccessat) diff --git a/libc/arch-x86_64/syscalls/fallocate.S b/libc/arch-x86_64/syscalls/fallocate.S index abaa303..4997f02 100644 --- a/libc/arch-x86_64/syscalls/fallocate.S +++ b/libc/arch-x86_64/syscalls/fallocate.S @@ -10,7 +10,7 @@ ENTRY(fallocate) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fallocate) diff --git a/libc/arch-x86_64/syscalls/fchdir.S b/libc/arch-x86_64/syscalls/fchdir.S index b01bb57..6bb4929 100644 --- a/libc/arch-x86_64/syscalls/fchdir.S +++ b/libc/arch-x86_64/syscalls/fchdir.S @@ -9,7 +9,7 @@ ENTRY(fchdir) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fchdir) diff --git a/libc/arch-x86_64/syscalls/fchmod.S b/libc/arch-x86_64/syscalls/fchmod.S index 868638f..899d796 100644 --- a/libc/arch-x86_64/syscalls/fchmod.S +++ b/libc/arch-x86_64/syscalls/fchmod.S @@ -9,7 +9,7 @@ ENTRY(fchmod) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fchmod) diff --git a/libc/arch-x86_64/syscalls/fchmodat.S b/libc/arch-x86_64/syscalls/fchmodat.S index e045a13..588fa1d 100644 --- a/libc/arch-x86_64/syscalls/fchmodat.S +++ b/libc/arch-x86_64/syscalls/fchmodat.S @@ -10,7 +10,7 @@ ENTRY(fchmodat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fchmodat) diff --git a/libc/arch-x86_64/syscalls/fchown.S b/libc/arch-x86_64/syscalls/fchown.S index 9ba775b..80c0283 100644 --- a/libc/arch-x86_64/syscalls/fchown.S +++ b/libc/arch-x86_64/syscalls/fchown.S @@ -9,7 +9,7 @@ ENTRY(fchown) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fchown) diff --git a/libc/arch-x86_64/syscalls/fchownat.S b/libc/arch-x86_64/syscalls/fchownat.S index 7789d2d..74853b7 100644 --- a/libc/arch-x86_64/syscalls/fchownat.S +++ b/libc/arch-x86_64/syscalls/fchownat.S @@ -10,7 +10,7 @@ ENTRY(fchownat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fchownat) diff --git a/libc/arch-x86_64/syscalls/fcntl.S b/libc/arch-x86_64/syscalls/fcntl.S index a20d938..909e568 100644 --- a/libc/arch-x86_64/syscalls/fcntl.S +++ b/libc/arch-x86_64/syscalls/fcntl.S @@ -9,7 +9,7 @@ ENTRY(fcntl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fcntl) diff --git a/libc/arch-x86_64/syscalls/fdatasync.S b/libc/arch-x86_64/syscalls/fdatasync.S index 5ea8ebd..43e368f 100644 --- a/libc/arch-x86_64/syscalls/fdatasync.S +++ b/libc/arch-x86_64/syscalls/fdatasync.S @@ -9,7 +9,7 @@ ENTRY(fdatasync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fdatasync) diff --git a/libc/arch-x86_64/syscalls/fgetxattr.S b/libc/arch-x86_64/syscalls/fgetxattr.S index 096c30f..56e5580 100644 --- a/libc/arch-x86_64/syscalls/fgetxattr.S +++ b/libc/arch-x86_64/syscalls/fgetxattr.S @@ -10,7 +10,7 @@ ENTRY(fgetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fgetxattr) diff --git a/libc/arch-x86_64/syscalls/flistxattr.S b/libc/arch-x86_64/syscalls/flistxattr.S index e0e5b8b..da77c72 100644 --- a/libc/arch-x86_64/syscalls/flistxattr.S +++ b/libc/arch-x86_64/syscalls/flistxattr.S @@ -9,7 +9,7 @@ ENTRY(flistxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(flistxattr) diff --git a/libc/arch-x86_64/syscalls/flock.S b/libc/arch-x86_64/syscalls/flock.S index 981d86e..30daa48 100644 --- a/libc/arch-x86_64/syscalls/flock.S +++ b/libc/arch-x86_64/syscalls/flock.S @@ -9,7 +9,7 @@ ENTRY(flock) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(flock) diff --git a/libc/arch-x86_64/syscalls/fremovexattr.S b/libc/arch-x86_64/syscalls/fremovexattr.S index 655bdef..f4536e2 100644 --- a/libc/arch-x86_64/syscalls/fremovexattr.S +++ b/libc/arch-x86_64/syscalls/fremovexattr.S @@ -9,7 +9,7 @@ ENTRY(fremovexattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fremovexattr) diff --git a/libc/arch-x86_64/syscalls/fsetxattr.S b/libc/arch-x86_64/syscalls/fsetxattr.S index fa2bddc..dcc4119 100644 --- a/libc/arch-x86_64/syscalls/fsetxattr.S +++ b/libc/arch-x86_64/syscalls/fsetxattr.S @@ -10,7 +10,7 @@ ENTRY(fsetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fsetxattr) diff --git a/libc/arch-x86_64/syscalls/fstat64.S b/libc/arch-x86_64/syscalls/fstat64.S index 9e7aa2d..40db722 100644 --- a/libc/arch-x86_64/syscalls/fstat64.S +++ b/libc/arch-x86_64/syscalls/fstat64.S @@ -9,7 +9,7 @@ ENTRY(fstat64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fstat64) diff --git a/libc/arch-x86_64/syscalls/fstatat64.S b/libc/arch-x86_64/syscalls/fstatat64.S index 5418cd0..fe6fcd2 100644 --- a/libc/arch-x86_64/syscalls/fstatat64.S +++ b/libc/arch-x86_64/syscalls/fstatat64.S @@ -10,7 +10,7 @@ ENTRY(fstatat64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fstatat64) diff --git a/libc/arch-x86_64/syscalls/fstatfs64.S b/libc/arch-x86_64/syscalls/fstatfs64.S index ee2daa2..39a6daf 100644 --- a/libc/arch-x86_64/syscalls/fstatfs64.S +++ b/libc/arch-x86_64/syscalls/fstatfs64.S @@ -9,7 +9,7 @@ ENTRY(fstatfs64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fstatfs64) diff --git a/libc/arch-x86_64/syscalls/fsync.S b/libc/arch-x86_64/syscalls/fsync.S index 12eabd3..f53ce5c 100644 --- a/libc/arch-x86_64/syscalls/fsync.S +++ b/libc/arch-x86_64/syscalls/fsync.S @@ -9,7 +9,7 @@ ENTRY(fsync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(fsync) diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S index 11161a7..5da7bc5 100644 --- a/libc/arch-x86_64/syscalls/ftruncate.S +++ b/libc/arch-x86_64/syscalls/ftruncate.S @@ -9,7 +9,7 @@ ENTRY(ftruncate) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(ftruncate) diff --git a/libc/arch-x86_64/syscalls/getegid.S b/libc/arch-x86_64/syscalls/getegid.S index 6f9c2a8..9939d20 100644 --- a/libc/arch-x86_64/syscalls/getegid.S +++ b/libc/arch-x86_64/syscalls/getegid.S @@ -9,7 +9,7 @@ ENTRY(getegid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getegid) diff --git a/libc/arch-x86_64/syscalls/geteuid.S b/libc/arch-x86_64/syscalls/geteuid.S index 88000ef..399bc10 100644 --- a/libc/arch-x86_64/syscalls/geteuid.S +++ b/libc/arch-x86_64/syscalls/geteuid.S @@ -9,7 +9,7 @@ ENTRY(geteuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(geteuid) diff --git a/libc/arch-x86_64/syscalls/getgid.S b/libc/arch-x86_64/syscalls/getgid.S index 8f8eaa6..2a0a895 100644 --- a/libc/arch-x86_64/syscalls/getgid.S +++ b/libc/arch-x86_64/syscalls/getgid.S @@ -9,7 +9,7 @@ ENTRY(getgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getgid) diff --git a/libc/arch-x86_64/syscalls/getgroups.S b/libc/arch-x86_64/syscalls/getgroups.S index 5358a3e..6110b5a 100644 --- a/libc/arch-x86_64/syscalls/getgroups.S +++ b/libc/arch-x86_64/syscalls/getgroups.S @@ -9,7 +9,7 @@ ENTRY(getgroups) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getgroups) diff --git a/libc/arch-x86_64/syscalls/getitimer.S b/libc/arch-x86_64/syscalls/getitimer.S index b6a6e8e..76ac856 100644 --- a/libc/arch-x86_64/syscalls/getitimer.S +++ b/libc/arch-x86_64/syscalls/getitimer.S @@ -9,7 +9,7 @@ ENTRY(getitimer) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getitimer) diff --git a/libc/arch-x86_64/syscalls/getpeername.S b/libc/arch-x86_64/syscalls/getpeername.S index 98e06fb..22ad98e 100644 --- a/libc/arch-x86_64/syscalls/getpeername.S +++ b/libc/arch-x86_64/syscalls/getpeername.S @@ -9,7 +9,7 @@ ENTRY(getpeername) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getpeername) diff --git a/libc/arch-x86_64/syscalls/getpgid.S b/libc/arch-x86_64/syscalls/getpgid.S index 158f14d..51d2e72 100644 --- a/libc/arch-x86_64/syscalls/getpgid.S +++ b/libc/arch-x86_64/syscalls/getpgid.S @@ -9,7 +9,7 @@ ENTRY(getpgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getpgid) diff --git a/libc/arch-x86_64/syscalls/getppid.S b/libc/arch-x86_64/syscalls/getppid.S index e4853e0..44e8cd9 100644 --- a/libc/arch-x86_64/syscalls/getppid.S +++ b/libc/arch-x86_64/syscalls/getppid.S @@ -9,7 +9,7 @@ ENTRY(getppid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getppid) diff --git a/libc/arch-x86_64/syscalls/getresgid.S b/libc/arch-x86_64/syscalls/getresgid.S index d65fb13..dab4f43 100644 --- a/libc/arch-x86_64/syscalls/getresgid.S +++ b/libc/arch-x86_64/syscalls/getresgid.S @@ -9,7 +9,7 @@ ENTRY(getresgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getresgid) diff --git a/libc/arch-x86_64/syscalls/getresuid.S b/libc/arch-x86_64/syscalls/getresuid.S index 80d85c6..5c433a9 100644 --- a/libc/arch-x86_64/syscalls/getresuid.S +++ b/libc/arch-x86_64/syscalls/getresuid.S @@ -9,7 +9,7 @@ ENTRY(getresuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getresuid) diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S index ea0ca7d..5c0dd08 100644 --- a/libc/arch-x86_64/syscalls/getrlimit.S +++ b/libc/arch-x86_64/syscalls/getrlimit.S @@ -9,7 +9,7 @@ ENTRY(getrlimit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getrlimit) diff --git a/libc/arch-x86_64/syscalls/getrusage.S b/libc/arch-x86_64/syscalls/getrusage.S index 7a60738..01750f2 100644 --- a/libc/arch-x86_64/syscalls/getrusage.S +++ b/libc/arch-x86_64/syscalls/getrusage.S @@ -9,7 +9,7 @@ ENTRY(getrusage) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getrusage) diff --git a/libc/arch-x86_64/syscalls/getsid.S b/libc/arch-x86_64/syscalls/getsid.S index 75e3fad..63e7ce0 100644 --- a/libc/arch-x86_64/syscalls/getsid.S +++ b/libc/arch-x86_64/syscalls/getsid.S @@ -9,7 +9,7 @@ ENTRY(getsid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getsid) diff --git a/libc/arch-x86_64/syscalls/getsockname.S b/libc/arch-x86_64/syscalls/getsockname.S index 3c7c2f8..62b4eb8 100644 --- a/libc/arch-x86_64/syscalls/getsockname.S +++ b/libc/arch-x86_64/syscalls/getsockname.S @@ -9,7 +9,7 @@ ENTRY(getsockname) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getsockname) diff --git a/libc/arch-x86_64/syscalls/getsockopt.S b/libc/arch-x86_64/syscalls/getsockopt.S index 725757c..dc62ce9 100644 --- a/libc/arch-x86_64/syscalls/getsockopt.S +++ b/libc/arch-x86_64/syscalls/getsockopt.S @@ -10,7 +10,7 @@ ENTRY(getsockopt) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getsockopt) diff --git a/libc/arch-x86_64/syscalls/getuid.S b/libc/arch-x86_64/syscalls/getuid.S index d7306e1..0229ae5 100644 --- a/libc/arch-x86_64/syscalls/getuid.S +++ b/libc/arch-x86_64/syscalls/getuid.S @@ -9,7 +9,7 @@ ENTRY(getuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getuid) diff --git a/libc/arch-x86_64/syscalls/getxattr.S b/libc/arch-x86_64/syscalls/getxattr.S index 7c66b0e..28354a5 100644 --- a/libc/arch-x86_64/syscalls/getxattr.S +++ b/libc/arch-x86_64/syscalls/getxattr.S @@ -10,7 +10,7 @@ ENTRY(getxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(getxattr) diff --git a/libc/arch-x86_64/syscalls/init_module.S b/libc/arch-x86_64/syscalls/init_module.S index 187f5a2..4532fdd 100644 --- a/libc/arch-x86_64/syscalls/init_module.S +++ b/libc/arch-x86_64/syscalls/init_module.S @@ -9,7 +9,7 @@ ENTRY(init_module) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(init_module) diff --git a/libc/arch-x86_64/syscalls/inotify_add_watch.S b/libc/arch-x86_64/syscalls/inotify_add_watch.S index 47e15ab..f2fb41f 100644 --- a/libc/arch-x86_64/syscalls/inotify_add_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_add_watch.S @@ -9,7 +9,7 @@ ENTRY(inotify_add_watch) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(inotify_add_watch) diff --git a/libc/arch-x86_64/syscalls/inotify_init1.S b/libc/arch-x86_64/syscalls/inotify_init1.S index 160b0d5..e1332c7 100644 --- a/libc/arch-x86_64/syscalls/inotify_init1.S +++ b/libc/arch-x86_64/syscalls/inotify_init1.S @@ -9,7 +9,7 @@ ENTRY(inotify_init1) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(inotify_init1) diff --git a/libc/arch-x86_64/syscalls/inotify_rm_watch.S b/libc/arch-x86_64/syscalls/inotify_rm_watch.S index 4c5874e..e1dddd2 100644 --- a/libc/arch-x86_64/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_rm_watch.S @@ -9,7 +9,7 @@ ENTRY(inotify_rm_watch) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(inotify_rm_watch) diff --git a/libc/arch-x86_64/syscalls/kill.S b/libc/arch-x86_64/syscalls/kill.S index f234585..e7b710a 100644 --- a/libc/arch-x86_64/syscalls/kill.S +++ b/libc/arch-x86_64/syscalls/kill.S @@ -9,7 +9,7 @@ ENTRY(kill) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(kill) diff --git a/libc/arch-x86_64/syscalls/klogctl.S b/libc/arch-x86_64/syscalls/klogctl.S index 057b066..fdc8649 100644 --- a/libc/arch-x86_64/syscalls/klogctl.S +++ b/libc/arch-x86_64/syscalls/klogctl.S @@ -9,7 +9,7 @@ ENTRY(klogctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(klogctl) diff --git a/libc/arch-x86_64/syscalls/lgetxattr.S b/libc/arch-x86_64/syscalls/lgetxattr.S index 525ee3b..c8e1bb6 100644 --- a/libc/arch-x86_64/syscalls/lgetxattr.S +++ b/libc/arch-x86_64/syscalls/lgetxattr.S @@ -10,7 +10,7 @@ ENTRY(lgetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(lgetxattr) diff --git a/libc/arch-x86_64/syscalls/linkat.S b/libc/arch-x86_64/syscalls/linkat.S index 815af86..2d83871 100644 --- a/libc/arch-x86_64/syscalls/linkat.S +++ b/libc/arch-x86_64/syscalls/linkat.S @@ -10,7 +10,7 @@ ENTRY(linkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(linkat) diff --git a/libc/arch-x86_64/syscalls/listen.S b/libc/arch-x86_64/syscalls/listen.S index d3d7103..2804286 100644 --- a/libc/arch-x86_64/syscalls/listen.S +++ b/libc/arch-x86_64/syscalls/listen.S @@ -9,7 +9,7 @@ ENTRY(listen) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(listen) diff --git a/libc/arch-x86_64/syscalls/listxattr.S b/libc/arch-x86_64/syscalls/listxattr.S index 89fd63c..82452f7 100644 --- a/libc/arch-x86_64/syscalls/listxattr.S +++ b/libc/arch-x86_64/syscalls/listxattr.S @@ -9,7 +9,7 @@ ENTRY(listxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(listxattr) diff --git a/libc/arch-x86_64/syscalls/llistxattr.S b/libc/arch-x86_64/syscalls/llistxattr.S index cfff2e7..2795480 100644 --- a/libc/arch-x86_64/syscalls/llistxattr.S +++ b/libc/arch-x86_64/syscalls/llistxattr.S @@ -9,7 +9,7 @@ ENTRY(llistxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(llistxattr) diff --git a/libc/arch-x86_64/syscalls/lremovexattr.S b/libc/arch-x86_64/syscalls/lremovexattr.S index 0b6994a..c406aa8 100644 --- a/libc/arch-x86_64/syscalls/lremovexattr.S +++ b/libc/arch-x86_64/syscalls/lremovexattr.S @@ -9,7 +9,7 @@ ENTRY(lremovexattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(lremovexattr) diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S index b2e8c16..f4035c4 100644 --- a/libc/arch-x86_64/syscalls/lseek.S +++ b/libc/arch-x86_64/syscalls/lseek.S @@ -9,7 +9,7 @@ ENTRY(lseek) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(lseek) diff --git a/libc/arch-x86_64/syscalls/lsetxattr.S b/libc/arch-x86_64/syscalls/lsetxattr.S index fdaf98a..9e18856 100644 --- a/libc/arch-x86_64/syscalls/lsetxattr.S +++ b/libc/arch-x86_64/syscalls/lsetxattr.S @@ -10,7 +10,7 @@ ENTRY(lsetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(lsetxattr) diff --git a/libc/arch-x86_64/syscalls/madvise.S b/libc/arch-x86_64/syscalls/madvise.S index 3f567fd..8298490 100644 --- a/libc/arch-x86_64/syscalls/madvise.S +++ b/libc/arch-x86_64/syscalls/madvise.S @@ -9,7 +9,7 @@ ENTRY(madvise) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(madvise) diff --git a/libc/arch-x86_64/syscalls/mincore.S b/libc/arch-x86_64/syscalls/mincore.S index e6b2521..194dbee 100644 --- a/libc/arch-x86_64/syscalls/mincore.S +++ b/libc/arch-x86_64/syscalls/mincore.S @@ -9,7 +9,7 @@ ENTRY(mincore) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mincore) diff --git a/libc/arch-x86_64/syscalls/mkdirat.S b/libc/arch-x86_64/syscalls/mkdirat.S index abba2d5..163dd64 100644 --- a/libc/arch-x86_64/syscalls/mkdirat.S +++ b/libc/arch-x86_64/syscalls/mkdirat.S @@ -9,7 +9,7 @@ ENTRY(mkdirat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mkdirat) diff --git a/libc/arch-x86_64/syscalls/mknodat.S b/libc/arch-x86_64/syscalls/mknodat.S index d3d78c9..59b0df7 100644 --- a/libc/arch-x86_64/syscalls/mknodat.S +++ b/libc/arch-x86_64/syscalls/mknodat.S @@ -10,7 +10,7 @@ ENTRY(mknodat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mknodat) diff --git a/libc/arch-x86_64/syscalls/mlock.S b/libc/arch-x86_64/syscalls/mlock.S index 0c69eb7..0eb8af7 100644 --- a/libc/arch-x86_64/syscalls/mlock.S +++ b/libc/arch-x86_64/syscalls/mlock.S @@ -9,7 +9,7 @@ ENTRY(mlock) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mlock) diff --git a/libc/arch-x86_64/syscalls/mlockall.S b/libc/arch-x86_64/syscalls/mlockall.S index 89ba9b6..c667dca 100644 --- a/libc/arch-x86_64/syscalls/mlockall.S +++ b/libc/arch-x86_64/syscalls/mlockall.S @@ -9,7 +9,7 @@ ENTRY(mlockall) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mlockall) diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S index 7b9f6e0..83f19b5 100644 --- a/libc/arch-x86_64/syscalls/mmap.S +++ b/libc/arch-x86_64/syscalls/mmap.S @@ -10,7 +10,7 @@ ENTRY(mmap) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mmap) diff --git a/libc/arch-x86_64/syscalls/mount.S b/libc/arch-x86_64/syscalls/mount.S index 04534c9..b047444 100644 --- a/libc/arch-x86_64/syscalls/mount.S +++ b/libc/arch-x86_64/syscalls/mount.S @@ -10,7 +10,7 @@ ENTRY(mount) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mount) diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S index d849bb1..fc28083 100644 --- a/libc/arch-x86_64/syscalls/mprotect.S +++ b/libc/arch-x86_64/syscalls/mprotect.S @@ -9,7 +9,7 @@ ENTRY(mprotect) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mprotect) diff --git a/libc/arch-x86_64/syscalls/mremap.S b/libc/arch-x86_64/syscalls/mremap.S index 8af367e..b95f1a8 100644 --- a/libc/arch-x86_64/syscalls/mremap.S +++ b/libc/arch-x86_64/syscalls/mremap.S @@ -10,7 +10,7 @@ ENTRY(mremap) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(mremap) diff --git a/libc/arch-x86_64/syscalls/msync.S b/libc/arch-x86_64/syscalls/msync.S index c0ff0f9..5d71e74 100644 --- a/libc/arch-x86_64/syscalls/msync.S +++ b/libc/arch-x86_64/syscalls/msync.S @@ -9,7 +9,7 @@ ENTRY(msync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(msync) diff --git a/libc/arch-x86_64/syscalls/munlock.S b/libc/arch-x86_64/syscalls/munlock.S index d669f54..0f9a8f9 100644 --- a/libc/arch-x86_64/syscalls/munlock.S +++ b/libc/arch-x86_64/syscalls/munlock.S @@ -9,7 +9,7 @@ ENTRY(munlock) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(munlock) diff --git a/libc/arch-x86_64/syscalls/munlockall.S b/libc/arch-x86_64/syscalls/munlockall.S index b7a9abc..5b52ad4 100644 --- a/libc/arch-x86_64/syscalls/munlockall.S +++ b/libc/arch-x86_64/syscalls/munlockall.S @@ -9,7 +9,7 @@ ENTRY(munlockall) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(munlockall) diff --git a/libc/arch-x86_64/syscalls/munmap.S b/libc/arch-x86_64/syscalls/munmap.S index 4360bd0..e83f2f6 100644 --- a/libc/arch-x86_64/syscalls/munmap.S +++ b/libc/arch-x86_64/syscalls/munmap.S @@ -9,7 +9,7 @@ ENTRY(munmap) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(munmap) diff --git a/libc/arch-x86_64/syscalls/nanosleep.S b/libc/arch-x86_64/syscalls/nanosleep.S index 2eced5b..62407fe 100644 --- a/libc/arch-x86_64/syscalls/nanosleep.S +++ b/libc/arch-x86_64/syscalls/nanosleep.S @@ -9,7 +9,7 @@ ENTRY(nanosleep) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(nanosleep) diff --git a/libc/arch-x86_64/syscalls/personality.S b/libc/arch-x86_64/syscalls/personality.S index 17ad7ee..0e87540 100644 --- a/libc/arch-x86_64/syscalls/personality.S +++ b/libc/arch-x86_64/syscalls/personality.S @@ -9,7 +9,7 @@ ENTRY(personality) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(personality) diff --git a/libc/arch-x86_64/syscalls/pipe2.S b/libc/arch-x86_64/syscalls/pipe2.S index 83eb0a6..c8c3e4c 100644 --- a/libc/arch-x86_64/syscalls/pipe2.S +++ b/libc/arch-x86_64/syscalls/pipe2.S @@ -9,7 +9,7 @@ ENTRY(pipe2) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(pipe2) diff --git a/libc/arch-x86_64/syscalls/prctl.S b/libc/arch-x86_64/syscalls/prctl.S index c79220d..359e31d 100644 --- a/libc/arch-x86_64/syscalls/prctl.S +++ b/libc/arch-x86_64/syscalls/prctl.S @@ -10,7 +10,7 @@ ENTRY(prctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(prctl) diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S index 1c4dc68..6e6b240 100644 --- a/libc/arch-x86_64/syscalls/pread64.S +++ b/libc/arch-x86_64/syscalls/pread64.S @@ -10,7 +10,7 @@ ENTRY(pread64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(pread64) diff --git a/libc/arch-x86_64/syscalls/prlimit64.S b/libc/arch-x86_64/syscalls/prlimit64.S index 823feba..ef99f5c 100644 --- a/libc/arch-x86_64/syscalls/prlimit64.S +++ b/libc/arch-x86_64/syscalls/prlimit64.S @@ -10,7 +10,7 @@ ENTRY(prlimit64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(prlimit64) diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S index 13bcb58..944c66a 100644 --- a/libc/arch-x86_64/syscalls/pwrite64.S +++ b/libc/arch-x86_64/syscalls/pwrite64.S @@ -10,7 +10,7 @@ ENTRY(pwrite64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(pwrite64) diff --git a/libc/arch-x86_64/syscalls/read.S b/libc/arch-x86_64/syscalls/read.S index 400c87a..960ea25 100644 --- a/libc/arch-x86_64/syscalls/read.S +++ b/libc/arch-x86_64/syscalls/read.S @@ -9,7 +9,7 @@ ENTRY(read) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(read) diff --git a/libc/arch-x86_64/syscalls/readahead.S b/libc/arch-x86_64/syscalls/readahead.S index 2a2978b..4f9ef4e 100644 --- a/libc/arch-x86_64/syscalls/readahead.S +++ b/libc/arch-x86_64/syscalls/readahead.S @@ -9,7 +9,7 @@ ENTRY(readahead) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(readahead) diff --git a/libc/arch-x86_64/syscalls/readlinkat.S b/libc/arch-x86_64/syscalls/readlinkat.S index 51d1f0c..cefa09f 100644 --- a/libc/arch-x86_64/syscalls/readlinkat.S +++ b/libc/arch-x86_64/syscalls/readlinkat.S @@ -10,7 +10,7 @@ ENTRY(readlinkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(readlinkat) diff --git a/libc/arch-x86_64/syscalls/readv.S b/libc/arch-x86_64/syscalls/readv.S index 4199751..f2eed7f 100644 --- a/libc/arch-x86_64/syscalls/readv.S +++ b/libc/arch-x86_64/syscalls/readv.S @@ -9,7 +9,7 @@ ENTRY(readv) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(readv) diff --git a/libc/arch-x86_64/syscalls/recvfrom.S b/libc/arch-x86_64/syscalls/recvfrom.S index 61ca1b2..99e7e87 100644 --- a/libc/arch-x86_64/syscalls/recvfrom.S +++ b/libc/arch-x86_64/syscalls/recvfrom.S @@ -10,7 +10,7 @@ ENTRY(recvfrom) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(recvfrom) diff --git a/libc/arch-x86_64/syscalls/recvmmsg.S b/libc/arch-x86_64/syscalls/recvmmsg.S index ce14ba5..89f9f86 100644 --- a/libc/arch-x86_64/syscalls/recvmmsg.S +++ b/libc/arch-x86_64/syscalls/recvmmsg.S @@ -10,7 +10,7 @@ ENTRY(recvmmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(recvmmsg) diff --git a/libc/arch-x86_64/syscalls/recvmsg.S b/libc/arch-x86_64/syscalls/recvmsg.S index 8655d07..5f44aeb 100644 --- a/libc/arch-x86_64/syscalls/recvmsg.S +++ b/libc/arch-x86_64/syscalls/recvmsg.S @@ -9,7 +9,7 @@ ENTRY(recvmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(recvmsg) diff --git a/libc/arch-x86_64/syscalls/removexattr.S b/libc/arch-x86_64/syscalls/removexattr.S index 9736463..92cce02 100644 --- a/libc/arch-x86_64/syscalls/removexattr.S +++ b/libc/arch-x86_64/syscalls/removexattr.S @@ -9,7 +9,7 @@ ENTRY(removexattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(removexattr) diff --git a/libc/arch-x86_64/syscalls/renameat.S b/libc/arch-x86_64/syscalls/renameat.S index 0be2ef9..0951121 100644 --- a/libc/arch-x86_64/syscalls/renameat.S +++ b/libc/arch-x86_64/syscalls/renameat.S @@ -10,7 +10,7 @@ ENTRY(renameat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(renameat) diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_max.S b/libc/arch-x86_64/syscalls/sched_get_priority_max.S index 0f92739..827327d 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_max.S @@ -9,7 +9,7 @@ ENTRY(sched_get_priority_max) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_get_priority_max) diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_min.S b/libc/arch-x86_64/syscalls/sched_get_priority_min.S index 8450e9d..5c3c51b 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_min.S @@ -9,7 +9,7 @@ ENTRY(sched_get_priority_min) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_get_priority_min) diff --git a/libc/arch-x86_64/syscalls/sched_getparam.S b/libc/arch-x86_64/syscalls/sched_getparam.S index a784640..1bd47e3 100644 --- a/libc/arch-x86_64/syscalls/sched_getparam.S +++ b/libc/arch-x86_64/syscalls/sched_getparam.S @@ -9,7 +9,7 @@ ENTRY(sched_getparam) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_getparam) diff --git a/libc/arch-x86_64/syscalls/sched_getscheduler.S b/libc/arch-x86_64/syscalls/sched_getscheduler.S index 090b322..12d5720 100644 --- a/libc/arch-x86_64/syscalls/sched_getscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_getscheduler.S @@ -9,7 +9,7 @@ ENTRY(sched_getscheduler) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_getscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S index 0977f2e..3e9959d 100644 --- a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S @@ -9,7 +9,7 @@ ENTRY(sched_rr_get_interval) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_rr_get_interval) diff --git a/libc/arch-x86_64/syscalls/sched_setaffinity.S b/libc/arch-x86_64/syscalls/sched_setaffinity.S index af8e7a2..ea6b2b8 100644 --- a/libc/arch-x86_64/syscalls/sched_setaffinity.S +++ b/libc/arch-x86_64/syscalls/sched_setaffinity.S @@ -9,7 +9,7 @@ ENTRY(sched_setaffinity) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_setaffinity) diff --git a/libc/arch-x86_64/syscalls/sched_setparam.S b/libc/arch-x86_64/syscalls/sched_setparam.S index 2964607..189be26 100644 --- a/libc/arch-x86_64/syscalls/sched_setparam.S +++ b/libc/arch-x86_64/syscalls/sched_setparam.S @@ -9,7 +9,7 @@ ENTRY(sched_setparam) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_setparam) diff --git a/libc/arch-x86_64/syscalls/sched_setscheduler.S b/libc/arch-x86_64/syscalls/sched_setscheduler.S index 333d1b8..2fe87a2 100644 --- a/libc/arch-x86_64/syscalls/sched_setscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_setscheduler.S @@ -9,7 +9,7 @@ ENTRY(sched_setscheduler) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_setscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_yield.S b/libc/arch-x86_64/syscalls/sched_yield.S index a972154..8a7da98 100644 --- a/libc/arch-x86_64/syscalls/sched_yield.S +++ b/libc/arch-x86_64/syscalls/sched_yield.S @@ -9,7 +9,7 @@ ENTRY(sched_yield) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sched_yield) diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S index c1b6497..ccb7e0b 100644 --- a/libc/arch-x86_64/syscalls/sendfile.S +++ b/libc/arch-x86_64/syscalls/sendfile.S @@ -10,7 +10,7 @@ ENTRY(sendfile) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sendfile) diff --git a/libc/arch-x86_64/syscalls/sendmmsg.S b/libc/arch-x86_64/syscalls/sendmmsg.S index 940c0b6..00efcf7 100644 --- a/libc/arch-x86_64/syscalls/sendmmsg.S +++ b/libc/arch-x86_64/syscalls/sendmmsg.S @@ -10,7 +10,7 @@ ENTRY(sendmmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sendmmsg) diff --git a/libc/arch-x86_64/syscalls/sendmsg.S b/libc/arch-x86_64/syscalls/sendmsg.S index 6d94bb6..ca8aeaf 100644 --- a/libc/arch-x86_64/syscalls/sendmsg.S +++ b/libc/arch-x86_64/syscalls/sendmsg.S @@ -9,7 +9,7 @@ ENTRY(sendmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sendmsg) diff --git a/libc/arch-x86_64/syscalls/sendto.S b/libc/arch-x86_64/syscalls/sendto.S index bfe4636..8f02b31 100644 --- a/libc/arch-x86_64/syscalls/sendto.S +++ b/libc/arch-x86_64/syscalls/sendto.S @@ -10,7 +10,7 @@ ENTRY(sendto) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sendto) diff --git a/libc/arch-x86_64/syscalls/setfsgid.S b/libc/arch-x86_64/syscalls/setfsgid.S index e9f50b8..ae0f61c 100644 --- a/libc/arch-x86_64/syscalls/setfsgid.S +++ b/libc/arch-x86_64/syscalls/setfsgid.S @@ -9,7 +9,7 @@ ENTRY(setfsgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setfsgid) diff --git a/libc/arch-x86_64/syscalls/setfsuid.S b/libc/arch-x86_64/syscalls/setfsuid.S index cfdb86c..3345628 100644 --- a/libc/arch-x86_64/syscalls/setfsuid.S +++ b/libc/arch-x86_64/syscalls/setfsuid.S @@ -9,7 +9,7 @@ ENTRY(setfsuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setfsuid) diff --git a/libc/arch-x86_64/syscalls/setgid.S b/libc/arch-x86_64/syscalls/setgid.S index ef4fb31..28eba22 100644 --- a/libc/arch-x86_64/syscalls/setgid.S +++ b/libc/arch-x86_64/syscalls/setgid.S @@ -9,7 +9,7 @@ ENTRY(setgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setgid) diff --git a/libc/arch-x86_64/syscalls/setgroups.S b/libc/arch-x86_64/syscalls/setgroups.S index 65e6180..ef12d2a 100644 --- a/libc/arch-x86_64/syscalls/setgroups.S +++ b/libc/arch-x86_64/syscalls/setgroups.S @@ -9,7 +9,7 @@ ENTRY(setgroups) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setgroups) diff --git a/libc/arch-x86_64/syscalls/setitimer.S b/libc/arch-x86_64/syscalls/setitimer.S index bee4996..34777b3 100644 --- a/libc/arch-x86_64/syscalls/setitimer.S +++ b/libc/arch-x86_64/syscalls/setitimer.S @@ -9,7 +9,7 @@ ENTRY(setitimer) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setitimer) diff --git a/libc/arch-x86_64/syscalls/setns.S b/libc/arch-x86_64/syscalls/setns.S index 521769b..2ef5f18 100644 --- a/libc/arch-x86_64/syscalls/setns.S +++ b/libc/arch-x86_64/syscalls/setns.S @@ -9,7 +9,7 @@ ENTRY(setns) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setns) diff --git a/libc/arch-x86_64/syscalls/setpgid.S b/libc/arch-x86_64/syscalls/setpgid.S index 348612b..9146d56 100644 --- a/libc/arch-x86_64/syscalls/setpgid.S +++ b/libc/arch-x86_64/syscalls/setpgid.S @@ -9,7 +9,7 @@ ENTRY(setpgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setpgid) diff --git a/libc/arch-x86_64/syscalls/setpriority.S b/libc/arch-x86_64/syscalls/setpriority.S index 0940368..74623d2 100644 --- a/libc/arch-x86_64/syscalls/setpriority.S +++ b/libc/arch-x86_64/syscalls/setpriority.S @@ -9,7 +9,7 @@ ENTRY(setpriority) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setpriority) diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S index 0338ecf..3bb9c83 100644 --- a/libc/arch-x86_64/syscalls/setregid.S +++ b/libc/arch-x86_64/syscalls/setregid.S @@ -9,7 +9,7 @@ ENTRY(setregid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setregid) diff --git a/libc/arch-x86_64/syscalls/setresgid.S b/libc/arch-x86_64/syscalls/setresgid.S index 10e1244..479ae38 100644 --- a/libc/arch-x86_64/syscalls/setresgid.S +++ b/libc/arch-x86_64/syscalls/setresgid.S @@ -9,7 +9,7 @@ ENTRY(setresgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setresgid) diff --git a/libc/arch-x86_64/syscalls/setresuid.S b/libc/arch-x86_64/syscalls/setresuid.S index 229b11b..3997656 100644 --- a/libc/arch-x86_64/syscalls/setresuid.S +++ b/libc/arch-x86_64/syscalls/setresuid.S @@ -9,7 +9,7 @@ ENTRY(setresuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setresuid) diff --git a/libc/arch-x86_64/syscalls/setreuid.S b/libc/arch-x86_64/syscalls/setreuid.S index e96e2d3..6cfdbd5 100644 --- a/libc/arch-x86_64/syscalls/setreuid.S +++ b/libc/arch-x86_64/syscalls/setreuid.S @@ -9,7 +9,7 @@ ENTRY(setreuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setreuid) diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S index 662587d..0aa6cf3 100644 --- a/libc/arch-x86_64/syscalls/setrlimit.S +++ b/libc/arch-x86_64/syscalls/setrlimit.S @@ -9,7 +9,7 @@ ENTRY(setrlimit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setrlimit) diff --git a/libc/arch-x86_64/syscalls/setsid.S b/libc/arch-x86_64/syscalls/setsid.S index 293ecf5..e221f40 100644 --- a/libc/arch-x86_64/syscalls/setsid.S +++ b/libc/arch-x86_64/syscalls/setsid.S @@ -9,7 +9,7 @@ ENTRY(setsid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setsid) diff --git a/libc/arch-x86_64/syscalls/setsockopt.S b/libc/arch-x86_64/syscalls/setsockopt.S index aee6613..a9853b9 100644 --- a/libc/arch-x86_64/syscalls/setsockopt.S +++ b/libc/arch-x86_64/syscalls/setsockopt.S @@ -10,7 +10,7 @@ ENTRY(setsockopt) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setsockopt) diff --git a/libc/arch-x86_64/syscalls/settimeofday.S b/libc/arch-x86_64/syscalls/settimeofday.S index 0d00c89..dfcf80f 100644 --- a/libc/arch-x86_64/syscalls/settimeofday.S +++ b/libc/arch-x86_64/syscalls/settimeofday.S @@ -9,7 +9,7 @@ ENTRY(settimeofday) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(settimeofday) diff --git a/libc/arch-x86_64/syscalls/setuid.S b/libc/arch-x86_64/syscalls/setuid.S index 19e2a10..f7b008e 100644 --- a/libc/arch-x86_64/syscalls/setuid.S +++ b/libc/arch-x86_64/syscalls/setuid.S @@ -9,7 +9,7 @@ ENTRY(setuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setuid) diff --git a/libc/arch-x86_64/syscalls/setxattr.S b/libc/arch-x86_64/syscalls/setxattr.S index 3e4d50b..9c0adc1 100644 --- a/libc/arch-x86_64/syscalls/setxattr.S +++ b/libc/arch-x86_64/syscalls/setxattr.S @@ -10,7 +10,7 @@ ENTRY(setxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(setxattr) diff --git a/libc/arch-x86_64/syscalls/shutdown.S b/libc/arch-x86_64/syscalls/shutdown.S index 346be33..7bf2851 100644 --- a/libc/arch-x86_64/syscalls/shutdown.S +++ b/libc/arch-x86_64/syscalls/shutdown.S @@ -9,7 +9,7 @@ ENTRY(shutdown) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(shutdown) diff --git a/libc/arch-x86_64/syscalls/sigaltstack.S b/libc/arch-x86_64/syscalls/sigaltstack.S index 271fafc..1bf9409 100644 --- a/libc/arch-x86_64/syscalls/sigaltstack.S +++ b/libc/arch-x86_64/syscalls/sigaltstack.S @@ -9,7 +9,7 @@ ENTRY(sigaltstack) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sigaltstack) diff --git a/libc/arch-x86_64/syscalls/socketpair.S b/libc/arch-x86_64/syscalls/socketpair.S index 5466dc9..260ef14 100644 --- a/libc/arch-x86_64/syscalls/socketpair.S +++ b/libc/arch-x86_64/syscalls/socketpair.S @@ -10,7 +10,7 @@ ENTRY(socketpair) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(socketpair) diff --git a/libc/arch-x86_64/syscalls/splice.S b/libc/arch-x86_64/syscalls/splice.S index 3c245a5..027c633 100644 --- a/libc/arch-x86_64/syscalls/splice.S +++ b/libc/arch-x86_64/syscalls/splice.S @@ -10,7 +10,7 @@ ENTRY(splice) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(splice) diff --git a/libc/arch-x86_64/syscalls/statfs64.S b/libc/arch-x86_64/syscalls/statfs64.S index 6a2637c..aca8db5 100644 --- a/libc/arch-x86_64/syscalls/statfs64.S +++ b/libc/arch-x86_64/syscalls/statfs64.S @@ -9,7 +9,7 @@ ENTRY(statfs64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(statfs64) diff --git a/libc/arch-x86_64/syscalls/swapoff.S b/libc/arch-x86_64/syscalls/swapoff.S index 7e55758..7ffb38d 100644 --- a/libc/arch-x86_64/syscalls/swapoff.S +++ b/libc/arch-x86_64/syscalls/swapoff.S @@ -9,7 +9,7 @@ ENTRY(swapoff) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(swapoff) diff --git a/libc/arch-x86_64/syscalls/swapon.S b/libc/arch-x86_64/syscalls/swapon.S index d2f5f66..ba83f24 100644 --- a/libc/arch-x86_64/syscalls/swapon.S +++ b/libc/arch-x86_64/syscalls/swapon.S @@ -9,7 +9,7 @@ ENTRY(swapon) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(swapon) diff --git a/libc/arch-x86_64/syscalls/symlinkat.S b/libc/arch-x86_64/syscalls/symlinkat.S index 5bbf1cb..f9e2fce 100644 --- a/libc/arch-x86_64/syscalls/symlinkat.S +++ b/libc/arch-x86_64/syscalls/symlinkat.S @@ -9,7 +9,7 @@ ENTRY(symlinkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(symlinkat) diff --git a/libc/arch-x86_64/syscalls/sync.S b/libc/arch-x86_64/syscalls/sync.S index 9911715..8058ff3 100644 --- a/libc/arch-x86_64/syscalls/sync.S +++ b/libc/arch-x86_64/syscalls/sync.S @@ -9,7 +9,7 @@ ENTRY(sync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sync) diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S index 104bb2c..34a5921 100644 --- a/libc/arch-x86_64/syscalls/sysinfo.S +++ b/libc/arch-x86_64/syscalls/sysinfo.S @@ -9,7 +9,7 @@ ENTRY(sysinfo) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(sysinfo) diff --git a/libc/arch-x86_64/syscalls/tee.S b/libc/arch-x86_64/syscalls/tee.S index ad5698c..afb843a 100644 --- a/libc/arch-x86_64/syscalls/tee.S +++ b/libc/arch-x86_64/syscalls/tee.S @@ -10,7 +10,7 @@ ENTRY(tee) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(tee) diff --git a/libc/arch-x86_64/syscalls/tgkill.S b/libc/arch-x86_64/syscalls/tgkill.S index e3b9972..eebdc91 100644 --- a/libc/arch-x86_64/syscalls/tgkill.S +++ b/libc/arch-x86_64/syscalls/tgkill.S @@ -9,7 +9,7 @@ ENTRY(tgkill) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(tgkill) diff --git a/libc/arch-x86_64/syscalls/timerfd_create.S b/libc/arch-x86_64/syscalls/timerfd_create.S index 3f1b23a..de0c2e1 100644 --- a/libc/arch-x86_64/syscalls/timerfd_create.S +++ b/libc/arch-x86_64/syscalls/timerfd_create.S @@ -9,7 +9,7 @@ ENTRY(timerfd_create) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(timerfd_create) diff --git a/libc/arch-x86_64/syscalls/timerfd_gettime.S b/libc/arch-x86_64/syscalls/timerfd_gettime.S index b1017ad..0c10cc4 100644 --- a/libc/arch-x86_64/syscalls/timerfd_gettime.S +++ b/libc/arch-x86_64/syscalls/timerfd_gettime.S @@ -9,7 +9,7 @@ ENTRY(timerfd_gettime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(timerfd_gettime) diff --git a/libc/arch-x86_64/syscalls/timerfd_settime.S b/libc/arch-x86_64/syscalls/timerfd_settime.S index 8610a1d..41afadc 100644 --- a/libc/arch-x86_64/syscalls/timerfd_settime.S +++ b/libc/arch-x86_64/syscalls/timerfd_settime.S @@ -10,7 +10,7 @@ ENTRY(timerfd_settime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(timerfd_settime) diff --git a/libc/arch-x86_64/syscalls/times.S b/libc/arch-x86_64/syscalls/times.S index 07590b9..ca961c7 100644 --- a/libc/arch-x86_64/syscalls/times.S +++ b/libc/arch-x86_64/syscalls/times.S @@ -9,7 +9,7 @@ ENTRY(times) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(times) diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S index db2121f..d680e2d 100644 --- a/libc/arch-x86_64/syscalls/truncate.S +++ b/libc/arch-x86_64/syscalls/truncate.S @@ -9,7 +9,7 @@ ENTRY(truncate) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(truncate) diff --git a/libc/arch-x86_64/syscalls/umask.S b/libc/arch-x86_64/syscalls/umask.S index badea76..590c6fe 100644 --- a/libc/arch-x86_64/syscalls/umask.S +++ b/libc/arch-x86_64/syscalls/umask.S @@ -9,7 +9,7 @@ ENTRY(umask) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(umask) diff --git a/libc/arch-x86_64/syscalls/umount2.S b/libc/arch-x86_64/syscalls/umount2.S index 93e6fa0..c4f5ab8 100644 --- a/libc/arch-x86_64/syscalls/umount2.S +++ b/libc/arch-x86_64/syscalls/umount2.S @@ -9,7 +9,7 @@ ENTRY(umount2) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(umount2) diff --git a/libc/arch-x86_64/syscalls/uname.S b/libc/arch-x86_64/syscalls/uname.S index 4b0d1c5..d01d1f6 100644 --- a/libc/arch-x86_64/syscalls/uname.S +++ b/libc/arch-x86_64/syscalls/uname.S @@ -9,7 +9,7 @@ ENTRY(uname) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(uname) diff --git a/libc/arch-x86_64/syscalls/unlinkat.S b/libc/arch-x86_64/syscalls/unlinkat.S index f322f7d..17726ff 100644 --- a/libc/arch-x86_64/syscalls/unlinkat.S +++ b/libc/arch-x86_64/syscalls/unlinkat.S @@ -9,7 +9,7 @@ ENTRY(unlinkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(unlinkat) diff --git a/libc/arch-x86_64/syscalls/unshare.S b/libc/arch-x86_64/syscalls/unshare.S index b5395c1..df94104 100644 --- a/libc/arch-x86_64/syscalls/unshare.S +++ b/libc/arch-x86_64/syscalls/unshare.S @@ -9,7 +9,7 @@ ENTRY(unshare) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(unshare) diff --git a/libc/arch-x86_64/syscalls/utimensat.S b/libc/arch-x86_64/syscalls/utimensat.S index f90caf2..c6bf2d4 100644 --- a/libc/arch-x86_64/syscalls/utimensat.S +++ b/libc/arch-x86_64/syscalls/utimensat.S @@ -10,7 +10,7 @@ ENTRY(utimensat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(utimensat) diff --git a/libc/arch-x86_64/syscalls/vmsplice.S b/libc/arch-x86_64/syscalls/vmsplice.S index cc94cc6..66490ab 100644 --- a/libc/arch-x86_64/syscalls/vmsplice.S +++ b/libc/arch-x86_64/syscalls/vmsplice.S @@ -10,7 +10,7 @@ ENTRY(vmsplice) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(vmsplice) diff --git a/libc/arch-x86_64/syscalls/wait4.S b/libc/arch-x86_64/syscalls/wait4.S index 7948331..b8d78f9 100644 --- a/libc/arch-x86_64/syscalls/wait4.S +++ b/libc/arch-x86_64/syscalls/wait4.S @@ -10,7 +10,7 @@ ENTRY(wait4) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(wait4) diff --git a/libc/arch-x86_64/syscalls/write.S b/libc/arch-x86_64/syscalls/write.S index 7e3a563..20cd689 100644 --- a/libc/arch-x86_64/syscalls/write.S +++ b/libc/arch-x86_64/syscalls/write.S @@ -9,7 +9,7 @@ ENTRY(write) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(write) diff --git a/libc/arch-x86_64/syscalls/writev.S b/libc/arch-x86_64/syscalls/writev.S index 5fc040a..2aff011 100644 --- a/libc/arch-x86_64/syscalls/writev.S +++ b/libc/arch-x86_64/syscalls/writev.S @@ -9,7 +9,7 @@ ENTRY(writev) jb 1f negl %eax movl %eax, %edi - call __set_errno + call PIC_PLT(__set_errno) 1: ret END(writev) |