Home
last modified time | relevance | path

Searched refs:__libc_shared_globals (Results 1 – 22 of 22) sorted by relevance

/bionic/linker/
Dlinker_debuggerd_android.cpp39 .abort_msg = __libc_shared_globals()->abort_msg, in get_process_info()
40 .fdsan_table = &__libc_shared_globals()->fd_table, in get_process_info()
41 .gwp_asan_state = __libc_shared_globals()->gwp_asan_state, in get_process_info()
42 .gwp_asan_metadata = __libc_shared_globals()->gwp_asan_metadata, in get_process_info()
43 .scudo_stack_depot = __libc_shared_globals()->scudo_stack_depot, in get_process_info()
44 .scudo_region_info = __libc_shared_globals()->scudo_region_info, in get_process_info()
45 .scudo_ring_buffer = __libc_shared_globals()->scudo_ring_buffer, in get_process_info()
Dlinker_tls.cpp53 __libc_shared_globals()->tls_modules.module_count = g_tls_modules.size(); in get_unused_module_index()
54 __libc_shared_globals()->tls_modules.module_table = g_tls_modules.data(); in get_unused_module_index()
59 TlsModules& libc_modules = __libc_shared_globals()->tls_modules; in register_tls_module()
87 ScopedWriteLock locker(&__libc_shared_globals()->tls_modules.rwlock); in unregister_tls_module()
106 __libc_shared_globals()->static_tls_layout.reserve_bionic_tls(); in __linker_reserve_bionic_tls_in_static_tls()
111 StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in linker_setup_exe_static_tls()
130 __libc_shared_globals()->static_tls_layout.finish_layout(); in linker_finalize_static_tls()
131 TlsModules& modules = __libc_shared_globals()->tls_modules; in linker_finalize_static_tls()
142 StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in register_soinfo_tls()
Dlinker_sdk_versions.cpp50 if (__libc_shared_globals()->set_target_sdk_version_hook) { in set_application_target_sdk_version()
51 __libc_shared_globals()->set_target_sdk_version_hook(target); in set_application_target_sdk_version()
Dlinker_main.cpp639 if (__libc_shared_globals()->auxv != nullptr) { in detect_self_exec()
763 __libc_shared_globals()->initial_linker_arg_count = 1; in __linker_init_post_relocation()
768 g_argc = args.argc - __libc_shared_globals()->initial_linker_arg_count; in __linker_init_post_relocation()
769 g_argv = args.argv + __libc_shared_globals()->initial_linker_arg_count; in __linker_init_post_relocation()
771 __libc_shared_globals()->init_progname = g_argv[0]; in __linker_init_post_relocation()
Ddlfcn.cpp302 return __libc_shared_globals(); in __loader_shared_globals()
Dlinker_relocate.cpp587 relocator.tls_tp_base = __libc_shared_globals()->static_tls_layout.offset_thread_pointer(); in relocate()
/bionic/libc/bionic/
Dlibc_init_dynamic.cpp88 TlsModules& tls_modules = __libc_shared_globals()->tls_modules; in __libc_preinit_impl()
107 __libc_shared_globals()->load_hook = __hwasan_library_loaded; in __libc_preinit_impl()
108 __libc_shared_globals()->unload_hook = __hwasan_library_unloaded; in __libc_preinit_impl()
111 __libc_shared_globals()->set_target_sdk_version_hook = __libc_set_target_sdk_version; in __libc_preinit_impl()
155 exit(slingshot(args.argc - __libc_shared_globals()->initial_linker_arg_count, in __libc_init()
156 args.argv + __libc_shared_globals()->initial_linker_arg_count, in __libc_init()
162 __LIBC_HIDDEN__ libc_shared_globals* __libc_shared_globals() { in __libc_shared_globals() function
Dsys_thread_properties.cpp53 const StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in __libc_get_static_tls_bounds()
59 TlsModules& modules = __libc_shared_globals()->tls_modules; in __libc_register_thread_exit_callback()
66 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in __libc_register_thread_exit_callback()
131 TlsModules& modules = __libc_shared_globals()->tls_modules; in __libc_iterate_dynamic_tls()
134 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in __libc_iterate_dynamic_tls()
149 TlsModules& tls_modules = __libc_shared_globals()->tls_modules; in __libc_register_dynamic_tls_listeners()
Dandroid_set_abort_message.cpp72 ScopedPthreadMutexLocker locker(&__libc_shared_globals()->abort_msg_lock); in android_set_abort_message()
74 if (__libc_shared_globals()->abort_msg != nullptr) { in android_set_abort_message()
94 __libc_shared_globals()->abort_msg = &new_magic_abort_message->msg; in android_set_abort_message()
Dbionic_elf_tls.cpp184 TlsModules& modules = __libc_shared_globals()->tls_modules; in __init_static_tls()
217 size_t loaded_cnt = __libc_shared_globals()->tls_modules.module_count; in calculate_new_dtv_count()
228 const TlsModules& modules = __libc_shared_globals()->tls_modules; in update_tls_dtv()
229 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in update_tls_dtv()
257 const StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in update_tls_dtv()
287 TlsModules& modules = __libc_shared_globals()->tls_modules; in tls_get_addr_slow_path()
302 mod_ptr = __libc_shared_globals()->tls_allocator.memalign(segment.alignment, segment.size); in tls_get_addr_slow_path()
348 TlsModules& modules = __libc_shared_globals()->tls_modules; in __free_dynamic_tls()
349 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in __free_dynamic_tls()
391 TlsModules& modules = __libc_shared_globals()->tls_modules; in __notify_thread_exit_callbacks()
Dlibc_init_static.cpp137 StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in layout_static_tls()
145 TlsModules& modules = __libc_shared_globals()->tls_modules; in layout_static_tls()
240 const char* progname = __libc_shared_globals()->init_progname; in get_environment_memtag_setting()
319 __libc_shared_globals()->initial_heap_tagging_level = level; in __libc_init_mte()
327 __libc_shared_globals()->initial_heap_tagging_level = M_HEAP_TAGGING_LEVEL_TBI; in __libc_init_mte()
346 __libc_shared_globals()->init_progname = args.argv[0]; in __real_libc_init()
413 __LIBC_HIDDEN__ libc_shared_globals* __libc_shared_globals() { in __libc_shared_globals() function
Dlibc_init_common.cpp115 environ = __libc_shared_globals()->init_environ; in __libc_init_common()
117 setprogname(__libc_shared_globals()->init_progname ?: "<unknown>"); in __libc_init_common()
360 environ = __libc_shared_globals()->init_environ = env; in __libc_init_AT_SECURE()
Ddl_iterate_phdr_static.cpp62 const TlsModules& tls_modules = __libc_shared_globals()->tls_modules; in dl_iterate_phdr()
68 const StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in dl_iterate_phdr()
Dgetauxval.cpp41 for (ElfW(auxv_t)* v = __libc_shared_globals()->auxv; v->a_type != AT_NULL; ++v) { in __bionic_getauxval()
D__libc_init_main_thread.cpp75 __libc_shared_globals()->auxv = args.auxv; in __libc_init_main_thread_early()
156 const StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in __libc_init_main_thread_final()
Dgwp_asan_wrappers.cpp76 __libc_shared_globals()->gwp_asan_state = GuardedAlloc.getAllocatorState(); in gwp_asan_initialize()
77 __libc_shared_globals()->gwp_asan_metadata = GuardedAlloc.getMetadataRegion(); in gwp_asan_initialize()
Dheap_tagging.cpp45 heap_tagging_level = __libc_shared_globals()->initial_heap_tagging_level; in SetDefaultHeapTaggingLevel()
Dmalloc_common_dynamic.cpp383 __libc_shared_globals()->scudo_stack_depot = __scudo_get_stack_depot_addr(); in MallocInitImpl()
384 __libc_shared_globals()->scudo_region_info = __scudo_get_region_info_addr(); in MallocInitImpl()
385 __libc_shared_globals()->scudo_ring_buffer = __scudo_get_ring_buffer_addr(); in MallocInitImpl()
Dpthread_create.cpp202 const StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in __allocate_thread_mapping()
288 const StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout; in __allocate_thread()
Dfdsan.cpp116 return __libc_shared_globals()->fd_table; in GetFdTable()
/bionic/libc/private/
Dbionic_globals.h117 __LIBC_HIDDEN__ libc_shared_globals* __libc_shared_globals();
/bionic/docs/
Delf-tls.md508 `__libc_shared_globals` variable (see `tls_modules()` in [linker_tls.cpp][tls_modules-linker] and