diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-08-29 14:01:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-08-29 14:01:46 -0400 |
commit | 35cd7c0950b1cb98b62e6dfb2be87e345dac75dd (patch) | |
tree | 2d2e13ac6f781cfb1504021e7860d05919082896 /include/inttypes.h | |
parent | 0ec49dab6794166d67fae4764ce7fdea42ea6103 (diff) | |
download | musl-35cd7c0950b1cb98b62e6dfb2be87e345dac75dd.tar.gz musl-35cd7c0950b1cb98b62e6dfb2be87e345dac75dd.tar.bz2 musl-35cd7c0950b1cb98b62e6dfb2be87e345dac75dd.tar.xz musl-35cd7c0950b1cb98b62e6dfb2be87e345dac75dd.zip |
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 0ec49dab6794166d67fae4764ce7fdea42ea6103 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.
Diffstat (limited to 'include/inttypes.h')
0 files changed, 0 insertions, 0 deletions