musl/arch/sh
Rich Felker 7a9669e977 add general fdpic support in dynamic linker and arch support for sh
at this point not all functionality is complete. the dynamic linker
itself, and main app if it is also loaded by the kernel, take
advantage of fdpic and do not need constant displacement between
segments, but additional libraries loaded by the dynamic linker follow
normal ELF semantics for mapping still. this fully works, but does not
admit shared text on nommu.

in terms of actual functional correctness, dlsym's results are
presently incorrect for function symbols, RTLD_NEXT fails to identify
the caller correctly, and dladdr fails almost entirely.

with the dynamic linker entry point working, support for static pie is
automatically included, but linking the main application as ET_DYN
(pie) probably does not make sense for fdpic anyway. ET_EXEC is
equally relocatable but more efficient at representing relocations.
2015-09-22 03:54:42 +00:00
..
bits fix sh jmp_buf size to match ABI 2015-04-27 20:03:28 -04:00
src make sh clone asm fdpic-compatible 2015-09-12 02:55:28 +00:00
atomic.h inline llsc atomics when building for sh4a 2015-05-19 00:42:07 -04:00
crt_arch.h add general fdpic support in dynamic linker and arch support for sh 2015-09-22 03:54:42 +00:00
pthread_arch.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
reloc.h add general fdpic support in dynamic linker and arch support for sh 2015-09-22 03:54:42 +00:00
syscall_arch.h switch to using trap number 31 for syscalls on sh 2015-06-16 15:25:02 +00:00