musl/arch
Rich Felker 35cd7c0950 fix async thread cancellation on sh-fdpic
if __cp_cancel was reached via __syscall_cp, r12 will necessarily
still contain a GOT pointer (for libc.so or for the static-linked main
program) valid for entering __cancel. however, in the case of async
cancellation, r12 may contain any scratch value; it's not necessarily
even a valid GOT pointer for the code that was interrupted.

unlike in commit 0ec49dab67 where the
corresponding issue was fixed for powerpc64, there is fundamentally no
way for fdpic code to recompute its GOT pointer. so a new mechanism is
introduced for cancel_handler to write a GOT register value into the
interrupted context on archs where it is needed.
2018-08-29 14:01:46 -04:00
..
aarch64 aarch64: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:17 -04:00
arm work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00
generic/bits move inclusion of linux headers for kd.h, soundcard.h, vt.h to bits 2018-07-20 01:06:41 -04:00
i386 add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
m68k add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
microblaze work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00
mips add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
mips64 add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
mipsn32 add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
or1k fix TLS layout of TLS variant I when there is a gap above TP 2018-06-02 19:38:44 -04:00
powerpc add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
powerpc64 add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
s390x add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
sh fix async thread cancellation on sh-fdpic 2018-08-29 14:01:46 -04:00
x32 add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
x86_64 add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00