diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-10 10:31:41 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-10 10:31:41 +0200 |
commit | 2dd87703d4386f2776c5b5f375a494c91d7f9fe4 (patch) | |
tree | 94c59b0e923242d2ea1fe8992ea574d156fb7ded /elf/dl-load.c | |
parent | ee07b3a7222746fafc5d5cb2163c9609b81615ef (diff) | |
download | glibc-2dd87703d4386f2776c5b5f375a494c91d7f9fe4.tar.gz glibc-2dd87703d4386f2776c5b5f375a494c91d7f9fe4.tar.xz glibc-2dd87703d4386f2776c5b5f375a494c91d7f9fe4.zip |
nptl: Move changing of stack permissions into ld.so
All the stack lists are now in _rtld_global, so it is possible to change stack permissions directly from there, instead of calling into libpthread to do the change. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 4 |
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_("\ |