diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2011-01-25 21:12:31 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2011-01-25 21:12:31 +0000 |
| commit | cb38d4941c45e3c72c4b5b3fad87d297d950cf53 (patch) | |
| tree | 6b984b52162918ea8254c857cb2d30fd43f83cbf /libexec/rtld-elf/rtld.c | |
| parent | f1410015f0543e69e52034a5d1cb4ca1982bca34 (diff) | |
When loading dso without PT_GNU_STACK phdr, only call
__pthread_map_stacks_exec() on architectures that allow executable
stacks.
Reported and tested by: marcel (ia64)
Notes
svn path=/head/; revision=217851
Diffstat (limited to 'libexec/rtld-elf/rtld.c')
| -rw-r--r-- | libexec/rtld-elf/rtld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 8acbdc5a7fcc..2ed7ea4a9d7a 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -191,7 +191,7 @@ extern Elf_Dyn _DYNAMIC; int osreldate, pagesize; -static int stack_prot = PROT_READ | PROT_WRITE | PROT_EXEC; +static int stack_prot = PROT_READ | PROT_WRITE | RTLD_DEFAULT_STACK_EXEC; static int max_stack_flags; /* |
