aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 2832ab3540..918ec7546c 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1368,7 +1368,11 @@ _dl_map_object_from_fd (const char *name, const char *origname, int fd,
check_consistency ();
#endif
+#if PTHREAD_IN_LIBC
+ errval = _dl_make_stacks_executable (stack_endp);
+#else
errval = (*GL(dl_make_stack_executable_hook)) (stack_endp);
+#endif
if (errval)
{
errstring = N_("\