glibc/sysdeps/unix/sysv/linux/s390/s390-32
Stefan Liebler 664f565f9c s390: Set psw addr field in getcontext and friends.
So far if the ucontext structure was obtained by getcontext and co,
the return address was stored in general purpose register 14 as
it is defined as return address in the ABI.

In contrast, the context passed to a signal handler contains the address
in psw.addr field.

If somebody e.g. wants to dump the address of the context, the origin
needs to be known.

Now this patch adjusts getcontext and friends and stores the return address
also in psw.addr field.

Note that setcontext isn't adjusted and it is not supported to pass a
ucontext structure from signal-handler to setcontext.  We are not able to
restore all registers and branching to psw.addr without clobbering one
register.
2023-12-19 11:00:19 +01:00
..
Makefile
Versions
____longjmp_chk.c
__makecontext_ret.S
arch-syscall.h Update syscall lists for Linux 6.6 2023-11-03 10:01:46 -03:00
c++-types.data
clone.S
clone3.S
getcontext.S s390: Set psw addr field in getcontext and friends. 2023-12-19 11:00:19 +01:00
getutent.c
getutent_r.c
getutid.c
getutid_r.c
getutline.c
getutline_r.c
getutmp.c
getutxent.c
getutxid.c
getutxline.c
glob64-lstat-compat.c
kernel_stat.h
ld.abilist
libBrokenLocale.abilist
libanl.abilist
libc.abilist linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
libc_malloc_debug.abilist
libdl.abilist
libm.abilist
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil-compat.c
libutil.abilist
login.c
login32.c
makecontext.c s390: Set psw addr field in getcontext and friends. 2023-12-19 11:00:19 +01:00
oldglob.c
pointer_guard.h
posix_fadvise64.c
pututxline.c
setcontext.S
swapcontext.S s390: Set psw addr field in getcontext and friends. 2023-12-19 11:00:19 +01:00
syscall.S
syscalls.list
sysdep.S
sysdep.h
time64-compat.h
updwtmp.c
updwtmpx.c
utmp-compat.h
utmp-convert.h
utmp32.c
utmp32.h
utmpx-convert.h
utmpx32.c
utmpx32.h
vfork.S