From 1290d38ac50b3afa7e5781d9d97346a1042c736c Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 25 Jan 2011 21:12:31 +0000 Subject: 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) --- libexec/rtld-elf/powerpc/rtld_machdep.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libexec/rtld-elf/powerpc') diff --git a/libexec/rtld-elf/powerpc/rtld_machdep.h b/libexec/rtld-elf/powerpc/rtld_machdep.h index bf589c5..4d0dad4 100644 --- a/libexec/rtld-elf/powerpc/rtld_machdep.h +++ b/libexec/rtld-elf/powerpc/rtld_machdep.h @@ -84,4 +84,7 @@ typedef struct { extern void *__tls_get_addr(tls_index* ti); +#define RTLD_DEFAULT_STACK_PF_EXEC PF_X +#define RTLD_DEFAULT_STACK_EXEC PROT_EXEC + #endif -- cgit v1.1