newlib/winsup/cygwin/tlsoffsets.h
Corinna Vinschen 22465796ed Preliminary infrastructure to implement alternate stack
* libc/include/sys/signal.h: Define SS_ONSTACK and SS_DISABLE
	unconditionally.
	(sigaltstack): Enable prototype on Cygwin.

	* common.din (sigaltstack): Export.
	* cygtls.cc (_cygtls::init_thread): Initialize altstack.
	* cygtls.h (__tlsstack_t): Rename from __stack_t to distinguish
	more clearly from stack_t.  Accommodate throughout.
	(_cygtls): Add altstack member.
	* exceptions.cc (exception::handle): Set SIGSEGV handler to SIG_DFL
	if we encounter a stack overflow, and no alternate stack has been
	defined.
	* include/cygwin/signal.h (MINSIGSTKSZ): Define
	(SIGSTKSZ): Define.
	(SA_ONSTACK): Define.
	* signal.cc (sigaltstack): New function.
	* tlsoffset.h: Regenerate.
	* tlsoffset64.h: Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-06-19 16:12:45 +02:00

122 lines
3.4 KiB
C

//;# autogenerated: Do not edit.
//; $tls::start_offset = -12700;
//; $tls::locals = -12700;
//; $tls::plocals = 0;
//; $tls::local_clib = -10980;
//; $tls::plocal_clib = 1720;
//; $tls::__dontuse = -10980;
//; $tls::p__dontuse = 1720;
//; $tls::func = -9892;
//; $tls::pfunc = 2808;
//; $tls::saved_errno = -9888;
//; $tls::psaved_errno = 2812;
//; $tls::sa_flags = -9884;
//; $tls::psa_flags = 2816;
//; $tls::oldmask = -9880;
//; $tls::poldmask = 2820;
//; $tls::deltamask = -9876;
//; $tls::pdeltamask = 2824;
//; $tls::errno_addr = -9872;
//; $tls::perrno_addr = 2828;
//; $tls::sigmask = -9868;
//; $tls::psigmask = 2832;
//; $tls::sigwait_mask = -9864;
//; $tls::psigwait_mask = 2836;
//; $tls::altstack = -9860;
//; $tls::paltstack = 2840;
//; $tls::sigwait_info = -9848;
//; $tls::psigwait_info = 2852;
//; $tls::signal_arrived = -9844;
//; $tls::psignal_arrived = 2856;
//; $tls::will_wait_for_signal = -9840;
//; $tls::pwill_wait_for_signal = 2860;
//; $tls::thread_context = -9836;
//; $tls::pthread_context = 2864;
//; $tls::thread_id = -9120;
//; $tls::pthread_id = 3580;
//; $tls::infodata = -9116;
//; $tls::pinfodata = 3584;
//; $tls::tid = -8968;
//; $tls::ptid = 3732;
//; $tls::_ctinfo = -8964;
//; $tls::p_ctinfo = 3736;
//; $tls::andreas = -8960;
//; $tls::pandreas = 3740;
//; $tls::wq = -8956;
//; $tls::pwq = 3744;
//; $tls::sig = -8928;
//; $tls::psig = 3772;
//; $tls::incyg = -8924;
//; $tls::pincyg = 3776;
//; $tls::spinning = -8920;
//; $tls::pspinning = 3780;
//; $tls::stacklock = -8916;
//; $tls::pstacklock = 3784;
//; $tls::stackptr = -8912;
//; $tls::pstackptr = 3788;
//; $tls::stack = -8908;
//; $tls::pstack = 3792;
//; $tls::initialized = -7884;
//; $tls::pinitialized = 4816;
//; __DATA__
#define tls_locals (-12700)
#define tls_plocals (0)
#define tls_local_clib (-10980)
#define tls_plocal_clib (1720)
#define tls___dontuse (-10980)
#define tls_p__dontuse (1720)
#define tls_func (-9892)
#define tls_pfunc (2808)
#define tls_saved_errno (-9888)
#define tls_psaved_errno (2812)
#define tls_sa_flags (-9884)
#define tls_psa_flags (2816)
#define tls_oldmask (-9880)
#define tls_poldmask (2820)
#define tls_deltamask (-9876)
#define tls_pdeltamask (2824)
#define tls_errno_addr (-9872)
#define tls_perrno_addr (2828)
#define tls_sigmask (-9868)
#define tls_psigmask (2832)
#define tls_sigwait_mask (-9864)
#define tls_psigwait_mask (2836)
#define tls_altstack (-9860)
#define tls_paltstack (2840)
#define tls_sigwait_info (-9848)
#define tls_psigwait_info (2852)
#define tls_signal_arrived (-9844)
#define tls_psignal_arrived (2856)
#define tls_will_wait_for_signal (-9840)
#define tls_pwill_wait_for_signal (2860)
#define tls_thread_context (-9836)
#define tls_pthread_context (2864)
#define tls_thread_id (-9120)
#define tls_pthread_id (3580)
#define tls_infodata (-9116)
#define tls_pinfodata (3584)
#define tls_tid (-8968)
#define tls_ptid (3732)
#define tls__ctinfo (-8964)
#define tls_p_ctinfo (3736)
#define tls_andreas (-8960)
#define tls_pandreas (3740)
#define tls_wq (-8956)
#define tls_pwq (3744)
#define tls_sig (-8928)
#define tls_psig (3772)
#define tls_incyg (-8924)
#define tls_pincyg (3776)
#define tls_spinning (-8920)
#define tls_pspinning (3780)
#define tls_stacklock (-8916)
#define tls_pstacklock (3784)
#define tls_stackptr (-8912)
#define tls_pstackptr (3788)
#define tls_stack (-8908)
#define tls_pstack (3792)
#define tls_initialized (-7884)
#define tls_pinitialized (4816)