glibc/sysdeps/unix/sysv/linux/sparc/sparc32
Daniel Cederman 7bd06985c0 sparc: Remove unwind information from signal return stubs [BZ #31244]
The functions were previously written in C, but were not compiled
with unwind information. The ENTRY/END macros includes .cfi_startproc
and .cfi_endproc which adds unwind information. This caused the
tests cleanup-8 and cleanup-10 in the GCC testsuite to fail.
This patch adds a version of the ENTRY/END macros without the
CFI instructions that can be used instead.

sigaction registers a restorer address that is located two instructions
before the stub function. This patch adds a two instruction padding to
avoid that the unwinder accesses the unwind information from the function
that the linker has placed right before it in memory. This fixes an issue
with pthread_cancel that caused tst-mutex8-static (and other tests) to fail.

Signed-off-by: Daniel Cederman <cederman@gaisler.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2024-01-18 08:27:44 -03:00
..
bits Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fpu
sparcv9/fpu
Implies
Makefile
Versions
____longjmp_chk.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
alphasort64.c
arch-syscall.h Update syscall lists for Linux 6.7 2024-01-17 15:38:54 +00:00
c++-types.data
clone.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
getcontext.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
kernel_stat.h
ld.abilist
libBrokenLocale.abilist
libanl.abilist
libc.abilist Implement C23 <stdbit.h> 2024-01-03 12:07:14 +00:00
libc_malloc_debug.abilist
libc_sigaction.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libdl.abilist
libm.abilist math: remove exp10 wrappers 2024-01-12 16:02:12 +00:00
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
makecontext.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nldbl-abi.h
pointer_guard.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
setcontext.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
shlib-versions
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sigreturn_stub.S sparc: Remove unwind information from signal return stubs [BZ #31244] 2024-01-18 08:27:44 -03:00
struct_kernel_msqid64_ds.h
struct_kernel_semid64_ds.h
swapcontext.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
syscall.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
syscalls.list
sysdep.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
time64-compat.h
ucontext_i.sym
versionsort64.c
vfork.S Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00