diff --git a/libc/arch-arm64/bionic/__bionic_clone.S b/libc/arch-arm64/bionic/__bionic_clone.S index ae7d14fdb..c49782cf0 100644 --- a/libc/arch-arm64/bionic/__bionic_clone.S +++ b/libc/arch-arm64/bionic/__bionic_clone.S @@ -32,8 +32,10 @@ ENTRY(__bionic_clone) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! # Copy 'fn' and 'arg' onto the child stack. stp x5, x6, [x1, #-16] @@ -45,8 +47,10 @@ ENTRY(__bionic_clone) # Are we the child? cbz x0, .L_bc_child - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 # Set errno if something went wrong. cmn x0, #(MAX_ERRNO + 1) @@ -57,6 +61,8 @@ ENTRY(__bionic_clone) .L_bc_child: # We're in the child now. Set the end of the frame record chain... + .cfi_undefined x29 + .cfi_undefined x30 mov x29, xzr # ...and call __bionic_clone_entry with the 'fn' and 'arg' we stored on the child stack. ldp x0, x1, [sp, #-16] diff --git a/libc/arch-arm64/bionic/futex_arm64.S b/libc/arch-arm64/bionic/futex_arm64.S index 5a478261a..00d24a49c 100644 --- a/libc/arch-arm64/bionic/futex_arm64.S +++ b/libc/arch-arm64/bionic/futex_arm64.S @@ -34,14 +34,18 @@ // int __futex_syscall4(volatile void* ftx, int op, int val, const struct timespec* timeout) ENTRY(__futex_syscall4) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_futex svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 ret END(__futex_syscall4) @@ -53,34 +57,42 @@ END(__futex_syscall3) // int __futex_wait(volatile void* ftx, int val, const struct timespec* timeout) ENTRY_PRIVATE(__futex_wait) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp mov x3, x2 mov x2, x1 mov x1, #FUTEX_WAIT - str x8, [sp, #-16]! mov x8, __NR_futex svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 ret END(__futex_wait) // int __futex_wake(volatile void* ftx, int count) ENTRY_PRIVATE(__futex_wake) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp mov x2, x1 mov x1, #FUTEX_WAKE - str x8, [sp, #-16]! mov x8, __NR_futex svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 ret END(__futex_wake) diff --git a/libc/arch-arm64/bionic/syscall.S b/libc/arch-arm64/bionic/syscall.S index e5be1d52d..42e8883e2 100644 --- a/libc/arch-arm64/bionic/syscall.S +++ b/libc/arch-arm64/bionic/syscall.S @@ -31,11 +31,11 @@ ENTRY(syscall) /* create AAPCS frame pointer */ stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - /* store x8 */ - str x8, [sp, #-16]! - /* Move syscall No. from x0 to x8 */ mov x8, x0 /* Move syscall parameters from x1 thru x6 to x0 thru x5 */ @@ -47,9 +47,10 @@ ENTRY(syscall) mov x5, x6 svc #0 - /* restore x8 */ - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 /* check if syscall returned successfully */ cmn x0, #(MAX_ERRNO + 1) diff --git a/libc/arch-arm64/bionic/vfork.S b/libc/arch-arm64/bionic/vfork.S index 52009e23c..c70062317 100644 --- a/libc/arch-arm64/bionic/vfork.S +++ b/libc/arch-arm64/bionic/vfork.S @@ -37,10 +37,8 @@ ENTRY(vfork) mov x3, xzr mov x4, xzr - str x8, [sp, #-16]! mov x8, __NR_clone svc #0 - ldr x8, [sp], #16 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__accept4.S b/libc/arch-arm64/syscalls/__accept4.S index c66cd2e99..34f2c520f 100644 --- a/libc/arch-arm64/syscalls/__accept4.S +++ b/libc/arch-arm64/syscalls/__accept4.S @@ -4,14 +4,18 @@ ENTRY(__accept4) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_accept4 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__brk.S b/libc/arch-arm64/syscalls/__brk.S index 918edf059..fb63fb905 100644 --- a/libc/arch-arm64/syscalls/__brk.S +++ b/libc/arch-arm64/syscalls/__brk.S @@ -4,14 +4,18 @@ ENTRY(__brk) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_brk svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__connect.S b/libc/arch-arm64/syscalls/__connect.S index c46f418ce..e578ccc20 100644 --- a/libc/arch-arm64/syscalls/__connect.S +++ b/libc/arch-arm64/syscalls/__connect.S @@ -4,14 +4,18 @@ ENTRY(__connect) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_connect svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__epoll_pwait.S b/libc/arch-arm64/syscalls/__epoll_pwait.S index b48736092..57b01c25d 100644 --- a/libc/arch-arm64/syscalls/__epoll_pwait.S +++ b/libc/arch-arm64/syscalls/__epoll_pwait.S @@ -4,14 +4,18 @@ ENTRY(__epoll_pwait) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_epoll_pwait svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__exit.S b/libc/arch-arm64/syscalls/__exit.S index 5e97928c9..8600b1308 100644 --- a/libc/arch-arm64/syscalls/__exit.S +++ b/libc/arch-arm64/syscalls/__exit.S @@ -4,14 +4,18 @@ ENTRY(__exit) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_exit svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__getcpu.S b/libc/arch-arm64/syscalls/__getcpu.S index a312188c8..e81ba2309 100644 --- a/libc/arch-arm64/syscalls/__getcpu.S +++ b/libc/arch-arm64/syscalls/__getcpu.S @@ -4,14 +4,18 @@ ENTRY(__getcpu) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getcpu svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__getcwd.S b/libc/arch-arm64/syscalls/__getcwd.S index 4b27a9ce9..fc48f8042 100644 --- a/libc/arch-arm64/syscalls/__getcwd.S +++ b/libc/arch-arm64/syscalls/__getcwd.S @@ -4,14 +4,18 @@ ENTRY(__getcwd) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getcwd svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__getpriority.S b/libc/arch-arm64/syscalls/__getpriority.S index 3ccd104d3..486ea8fcb 100644 --- a/libc/arch-arm64/syscalls/__getpriority.S +++ b/libc/arch-arm64/syscalls/__getpriority.S @@ -4,14 +4,18 @@ ENTRY(__getpriority) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getpriority svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__ioctl.S b/libc/arch-arm64/syscalls/__ioctl.S index 68d89bc33..30ff73c61 100644 --- a/libc/arch-arm64/syscalls/__ioctl.S +++ b/libc/arch-arm64/syscalls/__ioctl.S @@ -4,14 +4,18 @@ ENTRY(__ioctl) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_ioctl svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__openat.S b/libc/arch-arm64/syscalls/__openat.S index a49eaff12..22e2f6a44 100644 --- a/libc/arch-arm64/syscalls/__openat.S +++ b/libc/arch-arm64/syscalls/__openat.S @@ -4,14 +4,18 @@ ENTRY(__openat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_openat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__ppoll.S b/libc/arch-arm64/syscalls/__ppoll.S index 370e7689a..1739dea7e 100644 --- a/libc/arch-arm64/syscalls/__ppoll.S +++ b/libc/arch-arm64/syscalls/__ppoll.S @@ -4,14 +4,18 @@ ENTRY(__ppoll) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_ppoll svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__pselect6.S b/libc/arch-arm64/syscalls/__pselect6.S index 193e19f6d..27701641f 100644 --- a/libc/arch-arm64/syscalls/__pselect6.S +++ b/libc/arch-arm64/syscalls/__pselect6.S @@ -4,14 +4,18 @@ ENTRY(__pselect6) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_pselect6 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__ptrace.S b/libc/arch-arm64/syscalls/__ptrace.S index ee63cb0f9..374653095 100644 --- a/libc/arch-arm64/syscalls/__ptrace.S +++ b/libc/arch-arm64/syscalls/__ptrace.S @@ -4,14 +4,18 @@ ENTRY(__ptrace) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_ptrace svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__reboot.S b/libc/arch-arm64/syscalls/__reboot.S index 10b33ad18..b1ea41893 100644 --- a/libc/arch-arm64/syscalls/__reboot.S +++ b/libc/arch-arm64/syscalls/__reboot.S @@ -4,14 +4,18 @@ ENTRY(__reboot) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_reboot svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__rt_sigaction.S b/libc/arch-arm64/syscalls/__rt_sigaction.S index cea094149..33e07cb8b 100644 --- a/libc/arch-arm64/syscalls/__rt_sigaction.S +++ b/libc/arch-arm64/syscalls/__rt_sigaction.S @@ -4,14 +4,18 @@ ENTRY(__rt_sigaction) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_rt_sigaction svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__rt_sigpending.S b/libc/arch-arm64/syscalls/__rt_sigpending.S index 97db3b984..fa6812e86 100644 --- a/libc/arch-arm64/syscalls/__rt_sigpending.S +++ b/libc/arch-arm64/syscalls/__rt_sigpending.S @@ -4,14 +4,18 @@ ENTRY(__rt_sigpending) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_rt_sigpending svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__rt_sigprocmask.S b/libc/arch-arm64/syscalls/__rt_sigprocmask.S index 97dabe10d..537f8bd89 100644 --- a/libc/arch-arm64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm64/syscalls/__rt_sigprocmask.S @@ -4,14 +4,18 @@ ENTRY(__rt_sigprocmask) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_rt_sigprocmask svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__rt_sigsuspend.S b/libc/arch-arm64/syscalls/__rt_sigsuspend.S index d8eaa3e53..b8a99c605 100644 --- a/libc/arch-arm64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-arm64/syscalls/__rt_sigsuspend.S @@ -4,14 +4,18 @@ ENTRY(__rt_sigsuspend) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_rt_sigsuspend svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S index 95f031a88..869442c04 100644 --- a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S @@ -4,14 +4,18 @@ ENTRY(__rt_sigtimedwait) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_rt_sigtimedwait svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__sched_getaffinity.S b/libc/arch-arm64/syscalls/__sched_getaffinity.S index 58715d0fd..8ca23d458 100644 --- a/libc/arch-arm64/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm64/syscalls/__sched_getaffinity.S @@ -4,14 +4,18 @@ ENTRY(__sched_getaffinity) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_getaffinity svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__set_tid_address.S b/libc/arch-arm64/syscalls/__set_tid_address.S index 3cc452cbc..5514aed0d 100644 --- a/libc/arch-arm64/syscalls/__set_tid_address.S +++ b/libc/arch-arm64/syscalls/__set_tid_address.S @@ -4,14 +4,18 @@ ENTRY(__set_tid_address) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_set_tid_address svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__signalfd4.S b/libc/arch-arm64/syscalls/__signalfd4.S index 91510f604..ea49fc523 100644 --- a/libc/arch-arm64/syscalls/__signalfd4.S +++ b/libc/arch-arm64/syscalls/__signalfd4.S @@ -4,14 +4,18 @@ ENTRY(__signalfd4) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_signalfd4 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__socket.S b/libc/arch-arm64/syscalls/__socket.S index aa9da22f7..f96a1ab6f 100644 --- a/libc/arch-arm64/syscalls/__socket.S +++ b/libc/arch-arm64/syscalls/__socket.S @@ -4,14 +4,18 @@ ENTRY(__socket) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_socket svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__timer_create.S b/libc/arch-arm64/syscalls/__timer_create.S index b551048bf..87183b457 100644 --- a/libc/arch-arm64/syscalls/__timer_create.S +++ b/libc/arch-arm64/syscalls/__timer_create.S @@ -4,14 +4,18 @@ ENTRY(__timer_create) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timer_create svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__timer_delete.S b/libc/arch-arm64/syscalls/__timer_delete.S index 2aff54085..c21ec4f92 100644 --- a/libc/arch-arm64/syscalls/__timer_delete.S +++ b/libc/arch-arm64/syscalls/__timer_delete.S @@ -4,14 +4,18 @@ ENTRY(__timer_delete) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timer_delete svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__timer_getoverrun.S b/libc/arch-arm64/syscalls/__timer_getoverrun.S index b11e35620..47f1ef9b1 100644 --- a/libc/arch-arm64/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm64/syscalls/__timer_getoverrun.S @@ -4,14 +4,18 @@ ENTRY(__timer_getoverrun) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timer_getoverrun svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__timer_gettime.S b/libc/arch-arm64/syscalls/__timer_gettime.S index c7c4d09bb..4eaa65554 100644 --- a/libc/arch-arm64/syscalls/__timer_gettime.S +++ b/libc/arch-arm64/syscalls/__timer_gettime.S @@ -4,14 +4,18 @@ ENTRY(__timer_gettime) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timer_gettime svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__timer_settime.S b/libc/arch-arm64/syscalls/__timer_settime.S index 4f5f5fcf9..aef0cc499 100644 --- a/libc/arch-arm64/syscalls/__timer_settime.S +++ b/libc/arch-arm64/syscalls/__timer_settime.S @@ -4,14 +4,18 @@ ENTRY(__timer_settime) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timer_settime svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/__waitid.S b/libc/arch-arm64/syscalls/__waitid.S index 66e986a83..6d9e94092 100644 --- a/libc/arch-arm64/syscalls/__waitid.S +++ b/libc/arch-arm64/syscalls/__waitid.S @@ -4,14 +4,18 @@ ENTRY(__waitid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_waitid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/_exit.S b/libc/arch-arm64/syscalls/_exit.S index 40ada4863..37d149934 100644 --- a/libc/arch-arm64/syscalls/_exit.S +++ b/libc/arch-arm64/syscalls/_exit.S @@ -4,14 +4,18 @@ ENTRY(_exit) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_exit_group svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/acct.S b/libc/arch-arm64/syscalls/acct.S index 901e4200f..f391cd8d5 100644 --- a/libc/arch-arm64/syscalls/acct.S +++ b/libc/arch-arm64/syscalls/acct.S @@ -4,14 +4,18 @@ ENTRY(acct) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_acct svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/bind.S b/libc/arch-arm64/syscalls/bind.S index 471d78330..10dd01f83 100644 --- a/libc/arch-arm64/syscalls/bind.S +++ b/libc/arch-arm64/syscalls/bind.S @@ -4,14 +4,18 @@ ENTRY(bind) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_bind svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/capget.S b/libc/arch-arm64/syscalls/capget.S index 33fe11cc3..d01dc471b 100644 --- a/libc/arch-arm64/syscalls/capget.S +++ b/libc/arch-arm64/syscalls/capget.S @@ -4,14 +4,18 @@ ENTRY(capget) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_capget svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/capset.S b/libc/arch-arm64/syscalls/capset.S index 75f03a91c..c4ed92ece 100644 --- a/libc/arch-arm64/syscalls/capset.S +++ b/libc/arch-arm64/syscalls/capset.S @@ -4,14 +4,18 @@ ENTRY(capset) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_capset svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/chdir.S b/libc/arch-arm64/syscalls/chdir.S index 051f823b2..6f1baf0ba 100644 --- a/libc/arch-arm64/syscalls/chdir.S +++ b/libc/arch-arm64/syscalls/chdir.S @@ -4,14 +4,18 @@ ENTRY(chdir) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_chdir svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/chroot.S b/libc/arch-arm64/syscalls/chroot.S index c06399fe5..b15f04a36 100644 --- a/libc/arch-arm64/syscalls/chroot.S +++ b/libc/arch-arm64/syscalls/chroot.S @@ -4,14 +4,18 @@ ENTRY(chroot) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_chroot svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/clock_getres.S b/libc/arch-arm64/syscalls/clock_getres.S index bffc7cb8a..b18c10bd1 100644 --- a/libc/arch-arm64/syscalls/clock_getres.S +++ b/libc/arch-arm64/syscalls/clock_getres.S @@ -4,14 +4,18 @@ ENTRY(clock_getres) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_clock_getres svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/clock_gettime.S b/libc/arch-arm64/syscalls/clock_gettime.S index 3c582364a..b3518c1ed 100644 --- a/libc/arch-arm64/syscalls/clock_gettime.S +++ b/libc/arch-arm64/syscalls/clock_gettime.S @@ -4,14 +4,18 @@ ENTRY(clock_gettime) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_clock_gettime svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/clock_nanosleep.S b/libc/arch-arm64/syscalls/clock_nanosleep.S index 357bda606..eddf6f1fb 100644 --- a/libc/arch-arm64/syscalls/clock_nanosleep.S +++ b/libc/arch-arm64/syscalls/clock_nanosleep.S @@ -4,14 +4,18 @@ ENTRY(clock_nanosleep) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_clock_nanosleep svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/clock_settime.S b/libc/arch-arm64/syscalls/clock_settime.S index 06e9393ab..c6ba5c065 100644 --- a/libc/arch-arm64/syscalls/clock_settime.S +++ b/libc/arch-arm64/syscalls/clock_settime.S @@ -4,14 +4,18 @@ ENTRY(clock_settime) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_clock_settime svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/close.S b/libc/arch-arm64/syscalls/close.S index fefe147b3..a62389506 100644 --- a/libc/arch-arm64/syscalls/close.S +++ b/libc/arch-arm64/syscalls/close.S @@ -4,14 +4,18 @@ ENTRY(close) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_close svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/delete_module.S b/libc/arch-arm64/syscalls/delete_module.S index 4e8b09d20..a57517d4d 100644 --- a/libc/arch-arm64/syscalls/delete_module.S +++ b/libc/arch-arm64/syscalls/delete_module.S @@ -4,14 +4,18 @@ ENTRY(delete_module) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_delete_module svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/dup.S b/libc/arch-arm64/syscalls/dup.S index 9dbe56240..b7e04ed16 100644 --- a/libc/arch-arm64/syscalls/dup.S +++ b/libc/arch-arm64/syscalls/dup.S @@ -4,14 +4,18 @@ ENTRY(dup) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_dup svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/dup3.S b/libc/arch-arm64/syscalls/dup3.S index ee044406c..fada63d35 100644 --- a/libc/arch-arm64/syscalls/dup3.S +++ b/libc/arch-arm64/syscalls/dup3.S @@ -4,14 +4,18 @@ ENTRY(dup3) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_dup3 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/epoll_create1.S b/libc/arch-arm64/syscalls/epoll_create1.S index 0ed34b5ec..94990bfa6 100644 --- a/libc/arch-arm64/syscalls/epoll_create1.S +++ b/libc/arch-arm64/syscalls/epoll_create1.S @@ -4,14 +4,18 @@ ENTRY(epoll_create1) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_epoll_create1 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/epoll_ctl.S b/libc/arch-arm64/syscalls/epoll_ctl.S index a09ba297c..ea6f73590 100644 --- a/libc/arch-arm64/syscalls/epoll_ctl.S +++ b/libc/arch-arm64/syscalls/epoll_ctl.S @@ -4,14 +4,18 @@ ENTRY(epoll_ctl) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_epoll_ctl svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/eventfd.S b/libc/arch-arm64/syscalls/eventfd.S index e6b592b21..afa88b321 100644 --- a/libc/arch-arm64/syscalls/eventfd.S +++ b/libc/arch-arm64/syscalls/eventfd.S @@ -4,14 +4,18 @@ ENTRY(eventfd) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_eventfd2 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/execve.S b/libc/arch-arm64/syscalls/execve.S index 4f3cdb8e5..031b6d4db 100644 --- a/libc/arch-arm64/syscalls/execve.S +++ b/libc/arch-arm64/syscalls/execve.S @@ -4,14 +4,18 @@ ENTRY(execve) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_execve svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/faccessat.S b/libc/arch-arm64/syscalls/faccessat.S index c6b65579b..cebbf1851 100644 --- a/libc/arch-arm64/syscalls/faccessat.S +++ b/libc/arch-arm64/syscalls/faccessat.S @@ -4,14 +4,18 @@ ENTRY(faccessat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_faccessat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fallocate.S b/libc/arch-arm64/syscalls/fallocate.S index 15e727d02..94832aacb 100644 --- a/libc/arch-arm64/syscalls/fallocate.S +++ b/libc/arch-arm64/syscalls/fallocate.S @@ -4,14 +4,18 @@ ENTRY(fallocate) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fallocate svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fchdir.S b/libc/arch-arm64/syscalls/fchdir.S index c60823136..afba3c196 100644 --- a/libc/arch-arm64/syscalls/fchdir.S +++ b/libc/arch-arm64/syscalls/fchdir.S @@ -4,14 +4,18 @@ ENTRY(fchdir) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fchdir svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fchmod.S b/libc/arch-arm64/syscalls/fchmod.S index a777cdca6..35f9dec48 100644 --- a/libc/arch-arm64/syscalls/fchmod.S +++ b/libc/arch-arm64/syscalls/fchmod.S @@ -4,14 +4,18 @@ ENTRY(fchmod) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fchmod svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fchmodat.S b/libc/arch-arm64/syscalls/fchmodat.S index 1a52c9f42..59bfb8ae7 100644 --- a/libc/arch-arm64/syscalls/fchmodat.S +++ b/libc/arch-arm64/syscalls/fchmodat.S @@ -4,14 +4,18 @@ ENTRY(fchmodat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fchmodat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fchown.S b/libc/arch-arm64/syscalls/fchown.S index 073e36f2f..2294187ef 100644 --- a/libc/arch-arm64/syscalls/fchown.S +++ b/libc/arch-arm64/syscalls/fchown.S @@ -4,14 +4,18 @@ ENTRY(fchown) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fchown svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fchownat.S b/libc/arch-arm64/syscalls/fchownat.S index db80ab111..ff24187ee 100644 --- a/libc/arch-arm64/syscalls/fchownat.S +++ b/libc/arch-arm64/syscalls/fchownat.S @@ -4,14 +4,18 @@ ENTRY(fchownat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fchownat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fcntl.S b/libc/arch-arm64/syscalls/fcntl.S index 23ce15557..a9d6976bb 100644 --- a/libc/arch-arm64/syscalls/fcntl.S +++ b/libc/arch-arm64/syscalls/fcntl.S @@ -4,14 +4,18 @@ ENTRY(fcntl) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fcntl svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fdatasync.S b/libc/arch-arm64/syscalls/fdatasync.S index b4e9aa9be..4cf4de3e7 100644 --- a/libc/arch-arm64/syscalls/fdatasync.S +++ b/libc/arch-arm64/syscalls/fdatasync.S @@ -4,14 +4,18 @@ ENTRY(fdatasync) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fdatasync svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fgetxattr.S b/libc/arch-arm64/syscalls/fgetxattr.S index 3278a1217..914ea7f81 100644 --- a/libc/arch-arm64/syscalls/fgetxattr.S +++ b/libc/arch-arm64/syscalls/fgetxattr.S @@ -4,14 +4,18 @@ ENTRY(fgetxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fgetxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/flistxattr.S b/libc/arch-arm64/syscalls/flistxattr.S index 40b2a3072..2a643814e 100644 --- a/libc/arch-arm64/syscalls/flistxattr.S +++ b/libc/arch-arm64/syscalls/flistxattr.S @@ -4,14 +4,18 @@ ENTRY(flistxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_flistxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/flock.S b/libc/arch-arm64/syscalls/flock.S index 7e2878931..0d872334d 100644 --- a/libc/arch-arm64/syscalls/flock.S +++ b/libc/arch-arm64/syscalls/flock.S @@ -4,14 +4,18 @@ ENTRY(flock) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_flock svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fremovexattr.S b/libc/arch-arm64/syscalls/fremovexattr.S index be86dd0c8..e2ef64956 100644 --- a/libc/arch-arm64/syscalls/fremovexattr.S +++ b/libc/arch-arm64/syscalls/fremovexattr.S @@ -4,14 +4,18 @@ ENTRY(fremovexattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fremovexattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fsetxattr.S b/libc/arch-arm64/syscalls/fsetxattr.S index 2cb72c99a..eb419510f 100644 --- a/libc/arch-arm64/syscalls/fsetxattr.S +++ b/libc/arch-arm64/syscalls/fsetxattr.S @@ -4,14 +4,18 @@ ENTRY(fsetxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fsetxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fstat64.S b/libc/arch-arm64/syscalls/fstat64.S index fdff681cf..ee0d9e7cf 100644 --- a/libc/arch-arm64/syscalls/fstat64.S +++ b/libc/arch-arm64/syscalls/fstat64.S @@ -4,14 +4,18 @@ ENTRY(fstat64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fstat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fstatat64.S b/libc/arch-arm64/syscalls/fstatat64.S index 0f3ef4d62..4ff3039f1 100644 --- a/libc/arch-arm64/syscalls/fstatat64.S +++ b/libc/arch-arm64/syscalls/fstatat64.S @@ -4,14 +4,18 @@ ENTRY(fstatat64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_newfstatat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fstatfs64.S b/libc/arch-arm64/syscalls/fstatfs64.S index 6318d5656..b908b5706 100644 --- a/libc/arch-arm64/syscalls/fstatfs64.S +++ b/libc/arch-arm64/syscalls/fstatfs64.S @@ -4,14 +4,18 @@ ENTRY(fstatfs64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fstatfs svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/fsync.S b/libc/arch-arm64/syscalls/fsync.S index e1076f243..bac2e8b12 100644 --- a/libc/arch-arm64/syscalls/fsync.S +++ b/libc/arch-arm64/syscalls/fsync.S @@ -4,14 +4,18 @@ ENTRY(fsync) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_fsync svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/ftruncate.S b/libc/arch-arm64/syscalls/ftruncate.S index c8f5b6b83..ca4315a05 100644 --- a/libc/arch-arm64/syscalls/ftruncate.S +++ b/libc/arch-arm64/syscalls/ftruncate.S @@ -4,14 +4,18 @@ ENTRY(ftruncate) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_ftruncate svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/futex.S b/libc/arch-arm64/syscalls/futex.S index 5149d6b89..c14ebbff1 100644 --- a/libc/arch-arm64/syscalls/futex.S +++ b/libc/arch-arm64/syscalls/futex.S @@ -4,14 +4,18 @@ ENTRY(futex) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_futex svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getdents.S b/libc/arch-arm64/syscalls/getdents.S index 56496c2ca..8cd3ca76f 100644 --- a/libc/arch-arm64/syscalls/getdents.S +++ b/libc/arch-arm64/syscalls/getdents.S @@ -4,14 +4,18 @@ ENTRY(getdents) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getdents64 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getegid.S b/libc/arch-arm64/syscalls/getegid.S index 144fe88f2..593f51d34 100644 --- a/libc/arch-arm64/syscalls/getegid.S +++ b/libc/arch-arm64/syscalls/getegid.S @@ -4,14 +4,18 @@ ENTRY(getegid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getegid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/geteuid.S b/libc/arch-arm64/syscalls/geteuid.S index fcec9777b..845acbc5d 100644 --- a/libc/arch-arm64/syscalls/geteuid.S +++ b/libc/arch-arm64/syscalls/geteuid.S @@ -4,14 +4,18 @@ ENTRY(geteuid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_geteuid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getgid.S b/libc/arch-arm64/syscalls/getgid.S index 0fd172ef8..5f3435504 100644 --- a/libc/arch-arm64/syscalls/getgid.S +++ b/libc/arch-arm64/syscalls/getgid.S @@ -4,14 +4,18 @@ ENTRY(getgid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getgid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getgroups.S b/libc/arch-arm64/syscalls/getgroups.S index 3c12ef46d..d0e2540fb 100644 --- a/libc/arch-arm64/syscalls/getgroups.S +++ b/libc/arch-arm64/syscalls/getgroups.S @@ -4,14 +4,18 @@ ENTRY(getgroups) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getgroups svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getitimer.S b/libc/arch-arm64/syscalls/getitimer.S index d795cd73d..2d4d54177 100644 --- a/libc/arch-arm64/syscalls/getitimer.S +++ b/libc/arch-arm64/syscalls/getitimer.S @@ -4,14 +4,18 @@ ENTRY(getitimer) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getitimer svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getpeername.S b/libc/arch-arm64/syscalls/getpeername.S index aea3122cc..1f64130c7 100644 --- a/libc/arch-arm64/syscalls/getpeername.S +++ b/libc/arch-arm64/syscalls/getpeername.S @@ -4,14 +4,18 @@ ENTRY(getpeername) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getpeername svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getpgid.S b/libc/arch-arm64/syscalls/getpgid.S index 1bda83fdd..01d876f36 100644 --- a/libc/arch-arm64/syscalls/getpgid.S +++ b/libc/arch-arm64/syscalls/getpgid.S @@ -4,14 +4,18 @@ ENTRY(getpgid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getpgid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getpid.S b/libc/arch-arm64/syscalls/getpid.S index 3a408c839..94b823c58 100644 --- a/libc/arch-arm64/syscalls/getpid.S +++ b/libc/arch-arm64/syscalls/getpid.S @@ -4,14 +4,18 @@ ENTRY(getpid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getpid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getppid.S b/libc/arch-arm64/syscalls/getppid.S index 1b85cef3c..0a4687845 100644 --- a/libc/arch-arm64/syscalls/getppid.S +++ b/libc/arch-arm64/syscalls/getppid.S @@ -4,14 +4,18 @@ ENTRY(getppid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getppid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getresgid.S b/libc/arch-arm64/syscalls/getresgid.S index ab00b064b..bc121fcf7 100644 --- a/libc/arch-arm64/syscalls/getresgid.S +++ b/libc/arch-arm64/syscalls/getresgid.S @@ -4,14 +4,18 @@ ENTRY(getresgid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getresgid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getresuid.S b/libc/arch-arm64/syscalls/getresuid.S index 0ff218a17..28cd9a4f3 100644 --- a/libc/arch-arm64/syscalls/getresuid.S +++ b/libc/arch-arm64/syscalls/getresuid.S @@ -4,14 +4,18 @@ ENTRY(getresuid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getresuid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getrlimit.S b/libc/arch-arm64/syscalls/getrlimit.S index 4fb5f7ca8..aa966cac4 100644 --- a/libc/arch-arm64/syscalls/getrlimit.S +++ b/libc/arch-arm64/syscalls/getrlimit.S @@ -4,14 +4,18 @@ ENTRY(getrlimit) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getrlimit svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getrusage.S b/libc/arch-arm64/syscalls/getrusage.S index 5e2bace0e..aaaf3a28e 100644 --- a/libc/arch-arm64/syscalls/getrusage.S +++ b/libc/arch-arm64/syscalls/getrusage.S @@ -4,14 +4,18 @@ ENTRY(getrusage) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getrusage svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getsid.S b/libc/arch-arm64/syscalls/getsid.S index c85ca6002..e75b7b4b7 100644 --- a/libc/arch-arm64/syscalls/getsid.S +++ b/libc/arch-arm64/syscalls/getsid.S @@ -4,14 +4,18 @@ ENTRY(getsid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getsid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getsockname.S b/libc/arch-arm64/syscalls/getsockname.S index 1d0279ab0..61e4b4bdc 100644 --- a/libc/arch-arm64/syscalls/getsockname.S +++ b/libc/arch-arm64/syscalls/getsockname.S @@ -4,14 +4,18 @@ ENTRY(getsockname) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getsockname svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getsockopt.S b/libc/arch-arm64/syscalls/getsockopt.S index 3bfd5b8aa..3740df914 100644 --- a/libc/arch-arm64/syscalls/getsockopt.S +++ b/libc/arch-arm64/syscalls/getsockopt.S @@ -4,14 +4,18 @@ ENTRY(getsockopt) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getsockopt svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/gettid.S b/libc/arch-arm64/syscalls/gettid.S index d8c128eca..44ca9132e 100644 --- a/libc/arch-arm64/syscalls/gettid.S +++ b/libc/arch-arm64/syscalls/gettid.S @@ -4,14 +4,18 @@ ENTRY(gettid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_gettid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/gettimeofday.S b/libc/arch-arm64/syscalls/gettimeofday.S index 4f9ac28f7..a72ac91e1 100644 --- a/libc/arch-arm64/syscalls/gettimeofday.S +++ b/libc/arch-arm64/syscalls/gettimeofday.S @@ -4,14 +4,18 @@ ENTRY(gettimeofday) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_gettimeofday svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getuid.S b/libc/arch-arm64/syscalls/getuid.S index 96198b7a8..d749cc343 100644 --- a/libc/arch-arm64/syscalls/getuid.S +++ b/libc/arch-arm64/syscalls/getuid.S @@ -4,14 +4,18 @@ ENTRY(getuid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getuid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/getxattr.S b/libc/arch-arm64/syscalls/getxattr.S index 11b90aa0c..451eef543 100644 --- a/libc/arch-arm64/syscalls/getxattr.S +++ b/libc/arch-arm64/syscalls/getxattr.S @@ -4,14 +4,18 @@ ENTRY(getxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_getxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/init_module.S b/libc/arch-arm64/syscalls/init_module.S index 8648b04cd..42ec765b7 100644 --- a/libc/arch-arm64/syscalls/init_module.S +++ b/libc/arch-arm64/syscalls/init_module.S @@ -4,14 +4,18 @@ ENTRY(init_module) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_init_module svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/inotify_add_watch.S b/libc/arch-arm64/syscalls/inotify_add_watch.S index 583ab7203..066816c60 100644 --- a/libc/arch-arm64/syscalls/inotify_add_watch.S +++ b/libc/arch-arm64/syscalls/inotify_add_watch.S @@ -4,14 +4,18 @@ ENTRY(inotify_add_watch) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_inotify_add_watch svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/inotify_init1.S b/libc/arch-arm64/syscalls/inotify_init1.S index 3ee946e29..d6bee8cbd 100644 --- a/libc/arch-arm64/syscalls/inotify_init1.S +++ b/libc/arch-arm64/syscalls/inotify_init1.S @@ -4,14 +4,18 @@ ENTRY(inotify_init1) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_inotify_init1 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/inotify_rm_watch.S b/libc/arch-arm64/syscalls/inotify_rm_watch.S index 3121b5135..ee9c70fca 100644 --- a/libc/arch-arm64/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm64/syscalls/inotify_rm_watch.S @@ -4,14 +4,18 @@ ENTRY(inotify_rm_watch) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_inotify_rm_watch svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/ioprio_get.S b/libc/arch-arm64/syscalls/ioprio_get.S index 207a4e75a..4a4a7492e 100644 --- a/libc/arch-arm64/syscalls/ioprio_get.S +++ b/libc/arch-arm64/syscalls/ioprio_get.S @@ -4,14 +4,18 @@ ENTRY(ioprio_get) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_ioprio_get svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/ioprio_set.S b/libc/arch-arm64/syscalls/ioprio_set.S index eb7b0265e..8b48f1238 100644 --- a/libc/arch-arm64/syscalls/ioprio_set.S +++ b/libc/arch-arm64/syscalls/ioprio_set.S @@ -4,14 +4,18 @@ ENTRY(ioprio_set) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_ioprio_set svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/kill.S b/libc/arch-arm64/syscalls/kill.S index 3788df797..15c399b10 100644 --- a/libc/arch-arm64/syscalls/kill.S +++ b/libc/arch-arm64/syscalls/kill.S @@ -4,14 +4,18 @@ ENTRY(kill) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_kill svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/klogctl.S b/libc/arch-arm64/syscalls/klogctl.S index efa8b4ab3..1d161ec2a 100644 --- a/libc/arch-arm64/syscalls/klogctl.S +++ b/libc/arch-arm64/syscalls/klogctl.S @@ -4,14 +4,18 @@ ENTRY(klogctl) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_syslog svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/lgetxattr.S b/libc/arch-arm64/syscalls/lgetxattr.S index 1fda092cf..2799285fa 100644 --- a/libc/arch-arm64/syscalls/lgetxattr.S +++ b/libc/arch-arm64/syscalls/lgetxattr.S @@ -4,14 +4,18 @@ ENTRY(lgetxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_lgetxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/linkat.S b/libc/arch-arm64/syscalls/linkat.S index 999c00739..e65aa3f5e 100644 --- a/libc/arch-arm64/syscalls/linkat.S +++ b/libc/arch-arm64/syscalls/linkat.S @@ -4,14 +4,18 @@ ENTRY(linkat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_linkat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/listen.S b/libc/arch-arm64/syscalls/listen.S index 8b7fa0fb4..44ae2885e 100644 --- a/libc/arch-arm64/syscalls/listen.S +++ b/libc/arch-arm64/syscalls/listen.S @@ -4,14 +4,18 @@ ENTRY(listen) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_listen svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/listxattr.S b/libc/arch-arm64/syscalls/listxattr.S index cc399a95a..b31d22c8b 100644 --- a/libc/arch-arm64/syscalls/listxattr.S +++ b/libc/arch-arm64/syscalls/listxattr.S @@ -4,14 +4,18 @@ ENTRY(listxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_listxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/llistxattr.S b/libc/arch-arm64/syscalls/llistxattr.S index 87bfe10c3..fdcafdee2 100644 --- a/libc/arch-arm64/syscalls/llistxattr.S +++ b/libc/arch-arm64/syscalls/llistxattr.S @@ -4,14 +4,18 @@ ENTRY(llistxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_llistxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/lremovexattr.S b/libc/arch-arm64/syscalls/lremovexattr.S index ad823e448..741fa86c7 100644 --- a/libc/arch-arm64/syscalls/lremovexattr.S +++ b/libc/arch-arm64/syscalls/lremovexattr.S @@ -4,14 +4,18 @@ ENTRY(lremovexattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_lremovexattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/lseek.S b/libc/arch-arm64/syscalls/lseek.S index 0c042031c..3d16e755c 100644 --- a/libc/arch-arm64/syscalls/lseek.S +++ b/libc/arch-arm64/syscalls/lseek.S @@ -4,14 +4,18 @@ ENTRY(lseek) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_lseek svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/lsetxattr.S b/libc/arch-arm64/syscalls/lsetxattr.S index 683fc2bb1..a7fe1df00 100644 --- a/libc/arch-arm64/syscalls/lsetxattr.S +++ b/libc/arch-arm64/syscalls/lsetxattr.S @@ -4,14 +4,18 @@ ENTRY(lsetxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_lsetxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/madvise.S b/libc/arch-arm64/syscalls/madvise.S index 8136ec964..8eed27436 100644 --- a/libc/arch-arm64/syscalls/madvise.S +++ b/libc/arch-arm64/syscalls/madvise.S @@ -4,14 +4,18 @@ ENTRY(madvise) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_madvise svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mincore.S b/libc/arch-arm64/syscalls/mincore.S index 8a8e5a56b..21dbe1452 100644 --- a/libc/arch-arm64/syscalls/mincore.S +++ b/libc/arch-arm64/syscalls/mincore.S @@ -4,14 +4,18 @@ ENTRY(mincore) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mincore svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mkdirat.S b/libc/arch-arm64/syscalls/mkdirat.S index b3dd83885..efd9786f3 100644 --- a/libc/arch-arm64/syscalls/mkdirat.S +++ b/libc/arch-arm64/syscalls/mkdirat.S @@ -4,14 +4,18 @@ ENTRY(mkdirat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mkdirat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mknodat.S b/libc/arch-arm64/syscalls/mknodat.S index aca678616..1bf42d0e8 100644 --- a/libc/arch-arm64/syscalls/mknodat.S +++ b/libc/arch-arm64/syscalls/mknodat.S @@ -4,14 +4,18 @@ ENTRY(mknodat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mknodat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mlock.S b/libc/arch-arm64/syscalls/mlock.S index bb014357e..e09e7fc56 100644 --- a/libc/arch-arm64/syscalls/mlock.S +++ b/libc/arch-arm64/syscalls/mlock.S @@ -4,14 +4,18 @@ ENTRY(mlock) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mlock svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mlockall.S b/libc/arch-arm64/syscalls/mlockall.S index 278e6d348..bfb2b6000 100644 --- a/libc/arch-arm64/syscalls/mlockall.S +++ b/libc/arch-arm64/syscalls/mlockall.S @@ -4,14 +4,18 @@ ENTRY(mlockall) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mlockall svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mmap.S b/libc/arch-arm64/syscalls/mmap.S index 4d491855b..437698af4 100644 --- a/libc/arch-arm64/syscalls/mmap.S +++ b/libc/arch-arm64/syscalls/mmap.S @@ -4,14 +4,18 @@ ENTRY(mmap) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mmap svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mount.S b/libc/arch-arm64/syscalls/mount.S index d88a54b3d..34170d8de 100644 --- a/libc/arch-arm64/syscalls/mount.S +++ b/libc/arch-arm64/syscalls/mount.S @@ -4,14 +4,18 @@ ENTRY(mount) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mount svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mprotect.S b/libc/arch-arm64/syscalls/mprotect.S index c8a2efe46..cdb4bc822 100644 --- a/libc/arch-arm64/syscalls/mprotect.S +++ b/libc/arch-arm64/syscalls/mprotect.S @@ -4,14 +4,18 @@ ENTRY(mprotect) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mprotect svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/mremap.S b/libc/arch-arm64/syscalls/mremap.S index 7c7fe5b99..605b39d49 100644 --- a/libc/arch-arm64/syscalls/mremap.S +++ b/libc/arch-arm64/syscalls/mremap.S @@ -4,14 +4,18 @@ ENTRY(mremap) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_mremap svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/msync.S b/libc/arch-arm64/syscalls/msync.S index b45c99d8d..e511e86b7 100644 --- a/libc/arch-arm64/syscalls/msync.S +++ b/libc/arch-arm64/syscalls/msync.S @@ -4,14 +4,18 @@ ENTRY(msync) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_msync svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/munlock.S b/libc/arch-arm64/syscalls/munlock.S index d84b8503a..f837c9ca1 100644 --- a/libc/arch-arm64/syscalls/munlock.S +++ b/libc/arch-arm64/syscalls/munlock.S @@ -4,14 +4,18 @@ ENTRY(munlock) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_munlock svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/munlockall.S b/libc/arch-arm64/syscalls/munlockall.S index e043f715a..93e912179 100644 --- a/libc/arch-arm64/syscalls/munlockall.S +++ b/libc/arch-arm64/syscalls/munlockall.S @@ -4,14 +4,18 @@ ENTRY(munlockall) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_munlockall svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/munmap.S b/libc/arch-arm64/syscalls/munmap.S index 02afbe858..f2b22bd05 100644 --- a/libc/arch-arm64/syscalls/munmap.S +++ b/libc/arch-arm64/syscalls/munmap.S @@ -4,14 +4,18 @@ ENTRY(munmap) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_munmap svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/nanosleep.S b/libc/arch-arm64/syscalls/nanosleep.S index 8cd9a95c1..e33311af1 100644 --- a/libc/arch-arm64/syscalls/nanosleep.S +++ b/libc/arch-arm64/syscalls/nanosleep.S @@ -4,14 +4,18 @@ ENTRY(nanosleep) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_nanosleep svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/personality.S b/libc/arch-arm64/syscalls/personality.S index 2535467fa..c37cae2e5 100644 --- a/libc/arch-arm64/syscalls/personality.S +++ b/libc/arch-arm64/syscalls/personality.S @@ -4,14 +4,18 @@ ENTRY(personality) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_personality svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/pipe2.S b/libc/arch-arm64/syscalls/pipe2.S index f72e707f2..ab2e2595d 100644 --- a/libc/arch-arm64/syscalls/pipe2.S +++ b/libc/arch-arm64/syscalls/pipe2.S @@ -4,14 +4,18 @@ ENTRY(pipe2) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_pipe2 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/prctl.S b/libc/arch-arm64/syscalls/prctl.S index 79b3e9271..dd46fd438 100644 --- a/libc/arch-arm64/syscalls/prctl.S +++ b/libc/arch-arm64/syscalls/prctl.S @@ -4,14 +4,18 @@ ENTRY(prctl) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_prctl svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/pread64.S b/libc/arch-arm64/syscalls/pread64.S index b33394634..ddc6c125b 100644 --- a/libc/arch-arm64/syscalls/pread64.S +++ b/libc/arch-arm64/syscalls/pread64.S @@ -4,14 +4,18 @@ ENTRY(pread64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_pread64 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/prlimit64.S b/libc/arch-arm64/syscalls/prlimit64.S index c8820ef5f..39d31b04a 100644 --- a/libc/arch-arm64/syscalls/prlimit64.S +++ b/libc/arch-arm64/syscalls/prlimit64.S @@ -4,14 +4,18 @@ ENTRY(prlimit64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_prlimit64 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/pwrite64.S b/libc/arch-arm64/syscalls/pwrite64.S index 1ae312c6b..81e2cf765 100644 --- a/libc/arch-arm64/syscalls/pwrite64.S +++ b/libc/arch-arm64/syscalls/pwrite64.S @@ -4,14 +4,18 @@ ENTRY(pwrite64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_pwrite64 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/read.S b/libc/arch-arm64/syscalls/read.S index cf7ca0465..c52957643 100644 --- a/libc/arch-arm64/syscalls/read.S +++ b/libc/arch-arm64/syscalls/read.S @@ -4,14 +4,18 @@ ENTRY(read) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_read svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/readahead.S b/libc/arch-arm64/syscalls/readahead.S index fe45cf9a0..e8394cc23 100644 --- a/libc/arch-arm64/syscalls/readahead.S +++ b/libc/arch-arm64/syscalls/readahead.S @@ -4,14 +4,18 @@ ENTRY(readahead) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_readahead svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/readlinkat.S b/libc/arch-arm64/syscalls/readlinkat.S index eb8221cb5..d7cadcc61 100644 --- a/libc/arch-arm64/syscalls/readlinkat.S +++ b/libc/arch-arm64/syscalls/readlinkat.S @@ -4,14 +4,18 @@ ENTRY(readlinkat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_readlinkat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/readv.S b/libc/arch-arm64/syscalls/readv.S index f4fa61290..98d074222 100644 --- a/libc/arch-arm64/syscalls/readv.S +++ b/libc/arch-arm64/syscalls/readv.S @@ -4,14 +4,18 @@ ENTRY(readv) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_readv svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/recvfrom.S b/libc/arch-arm64/syscalls/recvfrom.S index 51ac25f94..63181f192 100644 --- a/libc/arch-arm64/syscalls/recvfrom.S +++ b/libc/arch-arm64/syscalls/recvfrom.S @@ -4,14 +4,18 @@ ENTRY(recvfrom) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_recvfrom svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/recvmmsg.S b/libc/arch-arm64/syscalls/recvmmsg.S index 44875cc47..cb1fbfc3f 100644 --- a/libc/arch-arm64/syscalls/recvmmsg.S +++ b/libc/arch-arm64/syscalls/recvmmsg.S @@ -4,14 +4,18 @@ ENTRY(recvmmsg) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_recvmmsg svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/recvmsg.S b/libc/arch-arm64/syscalls/recvmsg.S index 4ca40ea6e..8a91a5fa1 100644 --- a/libc/arch-arm64/syscalls/recvmsg.S +++ b/libc/arch-arm64/syscalls/recvmsg.S @@ -4,14 +4,18 @@ ENTRY(recvmsg) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_recvmsg svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/removexattr.S b/libc/arch-arm64/syscalls/removexattr.S index ae533075b..6fb557ad4 100644 --- a/libc/arch-arm64/syscalls/removexattr.S +++ b/libc/arch-arm64/syscalls/removexattr.S @@ -4,14 +4,18 @@ ENTRY(removexattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_removexattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/renameat.S b/libc/arch-arm64/syscalls/renameat.S index 3f6e4d416..e4efeb81e 100644 --- a/libc/arch-arm64/syscalls/renameat.S +++ b/libc/arch-arm64/syscalls/renameat.S @@ -4,14 +4,18 @@ ENTRY(renameat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_renameat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_get_priority_max.S b/libc/arch-arm64/syscalls/sched_get_priority_max.S index 735ca9385..74f919b83 100644 --- a/libc/arch-arm64/syscalls/sched_get_priority_max.S +++ b/libc/arch-arm64/syscalls/sched_get_priority_max.S @@ -4,14 +4,18 @@ ENTRY(sched_get_priority_max) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_get_priority_max svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_get_priority_min.S b/libc/arch-arm64/syscalls/sched_get_priority_min.S index a453b0b8f..d043b3b7e 100644 --- a/libc/arch-arm64/syscalls/sched_get_priority_min.S +++ b/libc/arch-arm64/syscalls/sched_get_priority_min.S @@ -4,14 +4,18 @@ ENTRY(sched_get_priority_min) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_get_priority_min svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_getparam.S b/libc/arch-arm64/syscalls/sched_getparam.S index f3492b9e4..fedcec8e6 100644 --- a/libc/arch-arm64/syscalls/sched_getparam.S +++ b/libc/arch-arm64/syscalls/sched_getparam.S @@ -4,14 +4,18 @@ ENTRY(sched_getparam) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_getparam svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_getscheduler.S b/libc/arch-arm64/syscalls/sched_getscheduler.S index db944f163..1225601f5 100644 --- a/libc/arch-arm64/syscalls/sched_getscheduler.S +++ b/libc/arch-arm64/syscalls/sched_getscheduler.S @@ -4,14 +4,18 @@ ENTRY(sched_getscheduler) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_getscheduler svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_rr_get_interval.S b/libc/arch-arm64/syscalls/sched_rr_get_interval.S index b91f6463e..796edda99 100644 --- a/libc/arch-arm64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-arm64/syscalls/sched_rr_get_interval.S @@ -4,14 +4,18 @@ ENTRY(sched_rr_get_interval) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_rr_get_interval svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_setaffinity.S b/libc/arch-arm64/syscalls/sched_setaffinity.S index e8e1aec48..2a7022dcc 100644 --- a/libc/arch-arm64/syscalls/sched_setaffinity.S +++ b/libc/arch-arm64/syscalls/sched_setaffinity.S @@ -4,14 +4,18 @@ ENTRY(sched_setaffinity) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_setaffinity svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_setparam.S b/libc/arch-arm64/syscalls/sched_setparam.S index 5df84f0ab..dd82a1040 100644 --- a/libc/arch-arm64/syscalls/sched_setparam.S +++ b/libc/arch-arm64/syscalls/sched_setparam.S @@ -4,14 +4,18 @@ ENTRY(sched_setparam) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_setparam svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_setscheduler.S b/libc/arch-arm64/syscalls/sched_setscheduler.S index 83c31e40b..25e1e364a 100644 --- a/libc/arch-arm64/syscalls/sched_setscheduler.S +++ b/libc/arch-arm64/syscalls/sched_setscheduler.S @@ -4,14 +4,18 @@ ENTRY(sched_setscheduler) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_setscheduler svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sched_yield.S b/libc/arch-arm64/syscalls/sched_yield.S index 7d5f88b8b..cbee020b0 100644 --- a/libc/arch-arm64/syscalls/sched_yield.S +++ b/libc/arch-arm64/syscalls/sched_yield.S @@ -4,14 +4,18 @@ ENTRY(sched_yield) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sched_yield svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sendfile.S b/libc/arch-arm64/syscalls/sendfile.S index 7bf415d9f..1705d3c8b 100644 --- a/libc/arch-arm64/syscalls/sendfile.S +++ b/libc/arch-arm64/syscalls/sendfile.S @@ -4,14 +4,18 @@ ENTRY(sendfile) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sendfile svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sendmmsg.S b/libc/arch-arm64/syscalls/sendmmsg.S index 43b2fbfaf..2277110ad 100644 --- a/libc/arch-arm64/syscalls/sendmmsg.S +++ b/libc/arch-arm64/syscalls/sendmmsg.S @@ -4,14 +4,18 @@ ENTRY(sendmmsg) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sendmmsg svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sendmsg.S b/libc/arch-arm64/syscalls/sendmsg.S index 2f0cdc80f..96fcb9a9a 100644 --- a/libc/arch-arm64/syscalls/sendmsg.S +++ b/libc/arch-arm64/syscalls/sendmsg.S @@ -4,14 +4,18 @@ ENTRY(sendmsg) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sendmsg svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sendto.S b/libc/arch-arm64/syscalls/sendto.S index 3fd54d10b..67589ba57 100644 --- a/libc/arch-arm64/syscalls/sendto.S +++ b/libc/arch-arm64/syscalls/sendto.S @@ -4,14 +4,18 @@ ENTRY(sendto) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sendto svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setgid.S b/libc/arch-arm64/syscalls/setgid.S index 0a811b0c2..fbaa7854d 100644 --- a/libc/arch-arm64/syscalls/setgid.S +++ b/libc/arch-arm64/syscalls/setgid.S @@ -4,14 +4,18 @@ ENTRY(setgid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setgid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setgroups.S b/libc/arch-arm64/syscalls/setgroups.S index d316e5ed6..48035b693 100644 --- a/libc/arch-arm64/syscalls/setgroups.S +++ b/libc/arch-arm64/syscalls/setgroups.S @@ -4,14 +4,18 @@ ENTRY(setgroups) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setgroups svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setitimer.S b/libc/arch-arm64/syscalls/setitimer.S index 7c2b718b3..42af94b6c 100644 --- a/libc/arch-arm64/syscalls/setitimer.S +++ b/libc/arch-arm64/syscalls/setitimer.S @@ -4,14 +4,18 @@ ENTRY(setitimer) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setitimer svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setns.S b/libc/arch-arm64/syscalls/setns.S index 2ce2a75fd..f6955971c 100644 --- a/libc/arch-arm64/syscalls/setns.S +++ b/libc/arch-arm64/syscalls/setns.S @@ -4,14 +4,18 @@ ENTRY(setns) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setns svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setpgid.S b/libc/arch-arm64/syscalls/setpgid.S index bd12e7024..56532562b 100644 --- a/libc/arch-arm64/syscalls/setpgid.S +++ b/libc/arch-arm64/syscalls/setpgid.S @@ -4,14 +4,18 @@ ENTRY(setpgid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setpgid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setpriority.S b/libc/arch-arm64/syscalls/setpriority.S index d9a4857e6..121bcaa2d 100644 --- a/libc/arch-arm64/syscalls/setpriority.S +++ b/libc/arch-arm64/syscalls/setpriority.S @@ -4,14 +4,18 @@ ENTRY(setpriority) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setpriority svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setregid.S b/libc/arch-arm64/syscalls/setregid.S index 702ae8b62..63895515f 100644 --- a/libc/arch-arm64/syscalls/setregid.S +++ b/libc/arch-arm64/syscalls/setregid.S @@ -4,14 +4,18 @@ ENTRY(setregid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setregid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setresgid.S b/libc/arch-arm64/syscalls/setresgid.S index c9501ac76..bf782494d 100644 --- a/libc/arch-arm64/syscalls/setresgid.S +++ b/libc/arch-arm64/syscalls/setresgid.S @@ -4,14 +4,18 @@ ENTRY(setresgid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setresgid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setresuid.S b/libc/arch-arm64/syscalls/setresuid.S index 6f680c354..83200daec 100644 --- a/libc/arch-arm64/syscalls/setresuid.S +++ b/libc/arch-arm64/syscalls/setresuid.S @@ -4,14 +4,18 @@ ENTRY(setresuid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setresuid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setreuid.S b/libc/arch-arm64/syscalls/setreuid.S index ef870fab9..2253eece8 100644 --- a/libc/arch-arm64/syscalls/setreuid.S +++ b/libc/arch-arm64/syscalls/setreuid.S @@ -4,14 +4,18 @@ ENTRY(setreuid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setreuid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setrlimit.S b/libc/arch-arm64/syscalls/setrlimit.S index 4bc412ad6..034ae3668 100644 --- a/libc/arch-arm64/syscalls/setrlimit.S +++ b/libc/arch-arm64/syscalls/setrlimit.S @@ -4,14 +4,18 @@ ENTRY(setrlimit) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setrlimit svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setsid.S b/libc/arch-arm64/syscalls/setsid.S index c9ba594a9..64123dffa 100644 --- a/libc/arch-arm64/syscalls/setsid.S +++ b/libc/arch-arm64/syscalls/setsid.S @@ -4,14 +4,18 @@ ENTRY(setsid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setsid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setsockopt.S b/libc/arch-arm64/syscalls/setsockopt.S index 7c9d58422..fe8da222b 100644 --- a/libc/arch-arm64/syscalls/setsockopt.S +++ b/libc/arch-arm64/syscalls/setsockopt.S @@ -4,14 +4,18 @@ ENTRY(setsockopt) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setsockopt svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/settimeofday.S b/libc/arch-arm64/syscalls/settimeofday.S index 4cf6ff250..50debf91d 100644 --- a/libc/arch-arm64/syscalls/settimeofday.S +++ b/libc/arch-arm64/syscalls/settimeofday.S @@ -4,14 +4,18 @@ ENTRY(settimeofday) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_settimeofday svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setuid.S b/libc/arch-arm64/syscalls/setuid.S index a886c15cf..0a9adbea6 100644 --- a/libc/arch-arm64/syscalls/setuid.S +++ b/libc/arch-arm64/syscalls/setuid.S @@ -4,14 +4,18 @@ ENTRY(setuid) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setuid svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/setxattr.S b/libc/arch-arm64/syscalls/setxattr.S index 1d25f3a67..ebfd607a9 100644 --- a/libc/arch-arm64/syscalls/setxattr.S +++ b/libc/arch-arm64/syscalls/setxattr.S @@ -4,14 +4,18 @@ ENTRY(setxattr) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_setxattr svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/shutdown.S b/libc/arch-arm64/syscalls/shutdown.S index b9fc3c3ea..6e878d662 100644 --- a/libc/arch-arm64/syscalls/shutdown.S +++ b/libc/arch-arm64/syscalls/shutdown.S @@ -4,14 +4,18 @@ ENTRY(shutdown) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_shutdown svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sigaltstack.S b/libc/arch-arm64/syscalls/sigaltstack.S index 6052caa96..46794d49e 100644 --- a/libc/arch-arm64/syscalls/sigaltstack.S +++ b/libc/arch-arm64/syscalls/sigaltstack.S @@ -4,14 +4,18 @@ ENTRY(sigaltstack) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sigaltstack svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/socketpair.S b/libc/arch-arm64/syscalls/socketpair.S index 05e617bc9..c42ff2429 100644 --- a/libc/arch-arm64/syscalls/socketpair.S +++ b/libc/arch-arm64/syscalls/socketpair.S @@ -4,14 +4,18 @@ ENTRY(socketpair) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_socketpair svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/statfs64.S b/libc/arch-arm64/syscalls/statfs64.S index c03798011..66662ee3a 100644 --- a/libc/arch-arm64/syscalls/statfs64.S +++ b/libc/arch-arm64/syscalls/statfs64.S @@ -4,14 +4,18 @@ ENTRY(statfs64) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_statfs svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/swapoff.S b/libc/arch-arm64/syscalls/swapoff.S index 742b460ea..1d465b036 100644 --- a/libc/arch-arm64/syscalls/swapoff.S +++ b/libc/arch-arm64/syscalls/swapoff.S @@ -4,14 +4,18 @@ ENTRY(swapoff) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_swapoff svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/swapon.S b/libc/arch-arm64/syscalls/swapon.S index b82d7de28..7e5f8503f 100644 --- a/libc/arch-arm64/syscalls/swapon.S +++ b/libc/arch-arm64/syscalls/swapon.S @@ -4,14 +4,18 @@ ENTRY(swapon) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_swapon svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/symlinkat.S b/libc/arch-arm64/syscalls/symlinkat.S index c6a831386..0081cf2d0 100644 --- a/libc/arch-arm64/syscalls/symlinkat.S +++ b/libc/arch-arm64/syscalls/symlinkat.S @@ -4,14 +4,18 @@ ENTRY(symlinkat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_symlinkat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sync.S b/libc/arch-arm64/syscalls/sync.S index 1954fe8c4..67bc554d5 100644 --- a/libc/arch-arm64/syscalls/sync.S +++ b/libc/arch-arm64/syscalls/sync.S @@ -4,14 +4,18 @@ ENTRY(sync) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sync svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/sysinfo.S b/libc/arch-arm64/syscalls/sysinfo.S index cb915503c..0797a39b5 100644 --- a/libc/arch-arm64/syscalls/sysinfo.S +++ b/libc/arch-arm64/syscalls/sysinfo.S @@ -4,14 +4,18 @@ ENTRY(sysinfo) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_sysinfo svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/tgkill.S b/libc/arch-arm64/syscalls/tgkill.S index a4018195f..9366c707e 100644 --- a/libc/arch-arm64/syscalls/tgkill.S +++ b/libc/arch-arm64/syscalls/tgkill.S @@ -4,14 +4,18 @@ ENTRY(tgkill) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_tgkill svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/timerfd_create.S b/libc/arch-arm64/syscalls/timerfd_create.S index e0558bed4..1e9d2e3f8 100644 --- a/libc/arch-arm64/syscalls/timerfd_create.S +++ b/libc/arch-arm64/syscalls/timerfd_create.S @@ -4,14 +4,18 @@ ENTRY(timerfd_create) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timerfd_create svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/timerfd_gettime.S b/libc/arch-arm64/syscalls/timerfd_gettime.S index 09234cd5e..56d7f9600 100644 --- a/libc/arch-arm64/syscalls/timerfd_gettime.S +++ b/libc/arch-arm64/syscalls/timerfd_gettime.S @@ -4,14 +4,18 @@ ENTRY(timerfd_gettime) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timerfd_gettime svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/timerfd_settime.S b/libc/arch-arm64/syscalls/timerfd_settime.S index cc205adda..29af0f1ea 100644 --- a/libc/arch-arm64/syscalls/timerfd_settime.S +++ b/libc/arch-arm64/syscalls/timerfd_settime.S @@ -4,14 +4,18 @@ ENTRY(timerfd_settime) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_timerfd_settime svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/times.S b/libc/arch-arm64/syscalls/times.S index c5fe38b8b..94871867a 100644 --- a/libc/arch-arm64/syscalls/times.S +++ b/libc/arch-arm64/syscalls/times.S @@ -4,14 +4,18 @@ ENTRY(times) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_times svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/tkill.S b/libc/arch-arm64/syscalls/tkill.S index 0b910fcea..307bd1498 100644 --- a/libc/arch-arm64/syscalls/tkill.S +++ b/libc/arch-arm64/syscalls/tkill.S @@ -4,14 +4,18 @@ ENTRY(tkill) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_tkill svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/truncate.S b/libc/arch-arm64/syscalls/truncate.S index 7e3385b0e..3bbe35649 100644 --- a/libc/arch-arm64/syscalls/truncate.S +++ b/libc/arch-arm64/syscalls/truncate.S @@ -4,14 +4,18 @@ ENTRY(truncate) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_truncate svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/umask.S b/libc/arch-arm64/syscalls/umask.S index 70a3e0179..ca7209291 100644 --- a/libc/arch-arm64/syscalls/umask.S +++ b/libc/arch-arm64/syscalls/umask.S @@ -4,14 +4,18 @@ ENTRY(umask) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_umask svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/umount2.S b/libc/arch-arm64/syscalls/umount2.S index cdd03629a..a9596256d 100644 --- a/libc/arch-arm64/syscalls/umount2.S +++ b/libc/arch-arm64/syscalls/umount2.S @@ -4,14 +4,18 @@ ENTRY(umount2) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_umount2 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/uname.S b/libc/arch-arm64/syscalls/uname.S index c2427868b..2f8756375 100644 --- a/libc/arch-arm64/syscalls/uname.S +++ b/libc/arch-arm64/syscalls/uname.S @@ -4,14 +4,18 @@ ENTRY(uname) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_uname svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/unlinkat.S b/libc/arch-arm64/syscalls/unlinkat.S index f7bb2c5cf..002572610 100644 --- a/libc/arch-arm64/syscalls/unlinkat.S +++ b/libc/arch-arm64/syscalls/unlinkat.S @@ -4,14 +4,18 @@ ENTRY(unlinkat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_unlinkat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/unshare.S b/libc/arch-arm64/syscalls/unshare.S index c9bd497a7..55462b461 100644 --- a/libc/arch-arm64/syscalls/unshare.S +++ b/libc/arch-arm64/syscalls/unshare.S @@ -4,14 +4,18 @@ ENTRY(unshare) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_unshare svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/utimensat.S b/libc/arch-arm64/syscalls/utimensat.S index 62c98a641..aa5cfbf45 100644 --- a/libc/arch-arm64/syscalls/utimensat.S +++ b/libc/arch-arm64/syscalls/utimensat.S @@ -4,14 +4,18 @@ ENTRY(utimensat) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_utimensat svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/wait4.S b/libc/arch-arm64/syscalls/wait4.S index 743153580..93183e55c 100644 --- a/libc/arch-arm64/syscalls/wait4.S +++ b/libc/arch-arm64/syscalls/wait4.S @@ -4,14 +4,18 @@ ENTRY(wait4) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_wait4 svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/write.S b/libc/arch-arm64/syscalls/write.S index 2f95f5d4a..b7288d13d 100644 --- a/libc/arch-arm64/syscalls/write.S +++ b/libc/arch-arm64/syscalls/write.S @@ -4,14 +4,18 @@ ENTRY(write) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_write svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/arch-arm64/syscalls/writev.S b/libc/arch-arm64/syscalls/writev.S index 015c1d37a..13af454bc 100644 --- a/libc/arch-arm64/syscalls/writev.S +++ b/libc/arch-arm64/syscalls/writev.S @@ -4,14 +4,18 @@ ENTRY(writev) stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, __NR_writev svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index 8a5f3d2e0..87d51e30f 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -96,14 +96,18 @@ END(%(func)s) arm64_call = syscall_stub_header + """\ stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 mov x29, sp - str x8, [sp, #-16]! mov x8, %(__NR_name)s svc #0 - ldr x8, [sp], #16 ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi