From 48dcd99f42588bb965332b47b07569adbb788608 Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 17 Aug 2015 18:34:54 +0000 Subject: MFC r286582: Pre-resolve symbols required for the deferred signal processing. --- lib/libthr/thread/thr_rtld.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/libthr/thread/thr_rtld.c') diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c index 5d89988..cb20098 100644 --- a/lib/libthr/thread/thr_rtld.c +++ b/lib/libthr/thread/thr_rtld.c @@ -185,7 +185,9 @@ _thr_rtld_init(void) { struct RtldLockInfo li; struct pthread *curthread; + ucontext_t *uc; long dummy = -1; + int uc_len; curthread = _get_curthread(); @@ -231,4 +233,9 @@ _thr_rtld_init(void) _thr_signal_block(curthread); _rtld_thread_init(&li); _thr_signal_unblock(curthread); + + uc_len = __getcontextx_size(); + uc = alloca(uc_len); + getcontext(uc); + __fillcontextx2((char *)uc); } -- cgit v1.1