Date: Sat, 8 Jan 2011 17:11:49 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/libexec/rtld-elf Symbol.map map_object.c rtld.c rtld.h src/sys/sys link_elf.h Message-ID: <201101081712.p08HCsS0048981@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2011-01-08 17:11:49 UTC FreeBSD src repository Modified files: libexec/rtld-elf Symbol.map map_object.c rtld.c rtld.h sys/sys link_elf.h Log: SVN rev 217153 on 2011-01-08 17:11:49Z by kib 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 Revision Changes Path 1.10 +1 -0 src/libexec/rtld-elf/Symbol.map 1.24 +7 -0 src/libexec/rtld-elf/map_object.c 1.164 +42 -0 src/libexec/rtld-elf/rtld.c 1.49 +1 -0 src/libexec/rtld-elf/rtld.h 1.32 +1 -0 src/sys/sys/link_elf.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101081712.p08HCsS0048981>