From 9d124d81f09d2097bfde444b2a6228a725a00efd Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 10 May 2021 10:31:41 +0200 Subject: nptl: Move more stack management variables into _rtld_global Permissions of the cached stacks may have to be updated if an object is loaded that requires executable stacks, so the dynamic loader needs to know about these cached stacks. The move of in_flight_stack and stack_cache_actsize is a requirement for merging __reclaim_stacks into the fork implementation in libc. Tested-by: Carlos O'Donell Reviewed-by: Carlos O'Donell --- elf/dl-support.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elf') diff --git a/elf/dl-support.c b/elf/dl-support.c index f966a2e..580b020 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -192,6 +192,9 @@ int (*_dl_make_stack_executable_hook) (void **) = _dl_make_stack_executable; #if THREAD_GSCOPE_IN_TCB list_t _dl_stack_used; list_t _dl_stack_user; +list_t _dl_stack_cache; +size_t _dl_stack_cache_actsize; +uintptr_t _dl_in_flight_stack; int _dl_stack_cache_lock; #else int _dl_thread_gscope_count; -- cgit v1.1