diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-09-22 20:51:59 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-09-22 20:51:59 +0000 |
commit | e9e770dfd6224a5ff7932b6115a35005dce7be29 (patch) | |
tree | c80fdd991fffe322502d01440b005f1c1faeb444 /arch/powerpc/crt_arch.h | |
parent | c87a52103399135d2f57a91a8bcc749d8cb2ca83 (diff) | |
download | musl-e9e770dfd6224a5ff7932b6115a35005dce7be29.tar.gz musl-e9e770dfd6224a5ff7932b6115a35005dce7be29.tar.xz musl-e9e770dfd6224a5ff7932b6115a35005dce7be29.zip |
have sh/fdpic entry point set fdpic personality if needed
the entry point code supports being loaded by a loader which is not fdpic-aware (in practice, either kernel with mmu or qemu without fdpic support). this mostly just works, but signal handling will wrongly use a function descriptor address as a code address if the personality is not adjusted to fdpic. ideally this code could be placed with sigaction so that it's not needed except if/when a signal handler is installed. however, personality is incorrectly maintained per-thread by the kernel, rather than per-process, so it's necessary to correct the personality before any threads are started. also, in order to skip the personality syscall when an fdpic-aware loader is used, we need to be able to detect how the program was loaded, and this information is only readily available at the entry point.
Diffstat (limited to 'arch/powerpc/crt_arch.h')
0 files changed, 0 insertions, 0 deletions