musl/arch/sh
Rich Felker b61df2294f fix signal return for sh/fdpic
the restorer function pointer provided in the kernel sigaction
structure is interpreted by the kernel as a raw code address, not a
function descriptor.

this commit moves the declarations of the __restore and __restore_rt
symbols to ksigaction.h so that arch versions of the file can override
them, and introduces a version for sh which declares them as objects
rather than functions.

an alternate solution would have been defining SA_RESTORER to 0 so
that the functions are not used, but this both requires executable
stack (since the sh kernel does not have a vdso page with permanent
restorer functions) and crashes on qemu user-level emulation.
2015-09-23 18:33:49 +00:00
..
bits fix sh jmp_buf size to match ABI 2015-04-27 20:03:28 -04:00
src work around breakage in sh/fdpic __unmapself function 2015-09-22 04:10:42 +00:00
atomic.h inline llsc atomics when building for sh4a 2015-05-19 00:42:07 -04:00
crt_arch.h have sh/fdpic entry point set fdpic personality if needed 2015-09-22 20:51:59 +00:00
ksigaction.h fix signal return for sh/fdpic 2015-09-23 18:33:49 +00:00
pthread_arch.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
reloc.h add real fdpic loading of shared libraries 2015-09-22 19:12:48 +00:00
syscall_arch.h switch to using trap number 31 for syscalls on sh 2015-06-16 15:25:02 +00:00