Konstantin Belousov da2fcff746 Implement the __pthread_map_stacks_exec() for libthr.
Stack creation code is changed to call _rtld_get_stack_prot() to get
the stack protection right. There is a race where thread is created
during dlopen() of dso that requires executable stacks. Then,
_rtld_get_stack_prot() may return PROT_READ | PROT_WRITE, but thread
is still not linked into the thread list. In this case, the callback
misses the thread stack, and rechecks the required protection
afterward.

Reviewed by:	davidxu
2011-01-09 12:38:40 +00:00
..
2010-08-03 17:40:09 +00:00
2010-08-03 17:40:09 +00:00
2010-12-04 08:44:56 +00:00
2010-06-13 01:27:29 +00:00
2010-11-19 09:59:55 +00:00
2010-08-03 17:40:09 +00:00
2010-11-06 10:54:33 +00:00
2010-08-03 17:40:09 +00:00
2010-11-11 15:48:27 +00:00