kib 5cec74bed9 In rtld, read the initial stack access mode from AT_STACKPROT as set
by kernel, and parse PT_GNU_STACK phdr from linked and loaded dsos.

If the loaded dso requires executable stack, as specified by PF_X bit
of p_flags of PT_GNU_STACK phdr, but current stack protection does not
permit execution, the __pthread_map_stacks_exec symbol is looked up
and called. It should be implemented in libc or threading library and
change the protection mode of all thread stacks to be executable.

Provide a private interface _rtld_get_stack_prot() to export the stack
access mode as calculated by rtld.

Reviewed by:	   kan
2011-01-08 17:11:49 +00:00
..
2010-12-20 08:29:54 +00:00
2010-12-06 10:24:06 +00:00
2010-12-20 08:37:26 +00:00
2010-12-20 08:44:08 +00:00
2010-02-26 09:41:16 +00:00
2010-12-19 13:05:17 +00:00
2010-11-09 10:59:09 +00:00
2010-02-26 09:41:16 +00:00
2009-12-03 15:48:24 +00:00