musl/arch/arm
Rich Felker d5a5045382 fix MINSIGSTKSZ values for archs with large signal contexts
the previous values (2k min and 8k default) were too small for some
archs. aarch64 reserves 4k in the signal context for future extensions
and requires about 4.5k total, and powerpc reportedly uses over 2k.
the new minimums are chosen to fit the saved context and also allow a
minimal signal handler to run.

since the default (SIGSTKSZ) has always been 6k larger than the
minimum, it is also increased to maintain the 6k usable by the signal
handler. this happens to be able to store one pathname buffer and
should be sufficient for calling any function in libc that doesn't
involve conversion between floating point and decimal representations.

x86 (both 32-bit and 64-bit variants) may also need a larger minimum
(around 2.5k) in the future to support avx-512, but the values on
these archs are left alone for now pending further analysis.

the value for PTHREAD_STACK_MIN is not increased to match MINSIGSTKSZ
at this time. this is so as not to preclude applications from using
extremely small thread stacks when they know they will not be handling
signals. unfortunately cancellation and multi-threaded set*id() use
signals as an implementation detail and therefore require a stack
large enough for a signal context, so applications which use extremely
small thread stacks may still need to avoid using these features.
2015-03-18 00:31:37 -04:00
..
bits fix MINSIGSTKSZ values for archs with large signal contexts 2015-03-18 00:31:37 -04:00
src fix __aeabi_read_tp oversight in arm atomics/tls overhaul 2014-11-22 12:26:38 -05:00
atomic.h overhaul ARM atomics/tls for performance and compatibility 2014-11-19 01:02:01 -05:00
crt_arch.h add function types to arm crt assembly 2013-08-15 14:52:27 -04:00
pthread_arch.h overhaul ARM atomics/tls for performance and compatibility 2014-11-19 01:02:01 -05:00
reloc.h refactor to remove arch-specific relocation code from dynamic linker 2014-06-18 02:44:02 -04:00
syscall_arch.h inline 5- and 6-argument syscalls on arm 2014-11-22 21:06:40 -05:00