/bionic/linker/ |
D | linker_debuggerd_android.cpp | 39 .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()
|
D | linker_tls.cpp | 53 __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()
|
D | linker_sdk_versions.cpp | 50 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()
|
D | linker_main.cpp | 639 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()
|
D | dlfcn.cpp | 302 return __libc_shared_globals(); in __loader_shared_globals()
|
D | linker_relocate.cpp | 587 relocator.tls_tp_base = __libc_shared_globals()->static_tls_layout.offset_thread_pointer(); in relocate()
|
/bionic/libc/bionic/ |
D | libc_init_dynamic.cpp | 88 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
|
D | sys_thread_properties.cpp | 53 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()
|
D | android_set_abort_message.cpp | 72 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()
|
D | bionic_elf_tls.cpp | 184 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()
|
D | libc_init_static.cpp | 137 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
|
D | libc_init_common.cpp | 115 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()
|
D | dl_iterate_phdr_static.cpp | 62 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()
|
D | getauxval.cpp | 41 for (ElfW(auxv_t)* v = __libc_shared_globals()->auxv; v->a_type != AT_NULL; ++v) { in __bionic_getauxval()
|
D | __libc_init_main_thread.cpp | 75 __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()
|
D | gwp_asan_wrappers.cpp | 76 __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()
|
D | heap_tagging.cpp | 45 heap_tagging_level = __libc_shared_globals()->initial_heap_tagging_level; in SetDefaultHeapTaggingLevel()
|
D | malloc_common_dynamic.cpp | 383 __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()
|
D | pthread_create.cpp | 202 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()
|
D | fdsan.cpp | 116 return __libc_shared_globals()->fd_table; in GetFdTable()
|
/bionic/libc/private/ |
D | bionic_globals.h | 117 __LIBC_HIDDEN__ libc_shared_globals* __libc_shared_globals();
|
/bionic/docs/ |
D | elf-tls.md | 508 `__libc_shared_globals` variable (see `tls_modules()` in [linker_tls.cpp][tls_modules-linker] and
|