musl/arch/sh
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
..
bits reverse definition dependency between PAGESIZE and PAGE_SIZE 2018-03-10 17:47:14 -05:00
atomic_arch.h fix build failure for sh4a due to missing colon in asm statement 2017-08-11 21:06:57 -04:00
crt_arch.h generalize sh entry point asm not to assume call dests fit in 12 bits 2015-11-02 18:11:36 -05:00
ksigaction.h fix signal return for sh/fdpic 2015-09-23 18:33:49 +00:00
pthread_arch.h fix async thread cancellation on sh-fdpic 2018-08-29 14:01:46 -04:00
reloc.h fix TLS layout of TLS variant I when there is a gap above TP 2018-06-02 19:38:44 -04:00
syscall_arch.h work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00