/glibc-2.36/elf/ |
D | rtld.c | 220 audit_list_add_dynamic_tag (struct audit_list *list, struct link_map *main_map, in audit_list_add_dynamic_tag() argument 223 ElfW(Dyn) *info = main_map->l_info[ADDRIDX (tag)]; in audit_list_add_dynamic_tag() 224 const char *strtab = (const char *) D_PTR (main_map, l_info[DT_STRTAB]); in audit_list_add_dynamic_tag() 809 do_preload (const char *fname, struct link_map *main_map, const char *where) in do_preload() argument 817 args.loader = main_map; in do_preload() 873 handle_preload_list (const char *preloadlist, struct link_map *main_map, in handle_preload_list() argument 898 npreloads += do_preload (fname, main_map, where); in handle_preload_list() 1054 load_audit_modules (struct link_map *main_map, struct audit_list *audit_list) in load_audit_modules() argument 1070 _dl_audit_objopen (main_map, LM_ID_BASE); in load_audit_modules() 1078 rtld_chain_load (struct link_map *main_map, char *argv0) in rtld_chain_load() argument [all …]
|
D | dl-reloc-static-pie.c | 38 struct link_map *main_map = _dl_get_dl_main_map (); in _dl_relocate_static_pie() local 41 main_map->l_addr = elf_machine_load_address (); in _dl_relocate_static_pie() 44 main_map->l_ld = ((void *) main_map->l_addr + elf_machine_dynamic ()); in _dl_relocate_static_pie() 51 main_map->l_ld_readonly = (ph->p_flags & PF_W) == 0; in _dl_relocate_static_pie() 55 elf_get_dynamic_info (main_map, false, true); in _dl_relocate_static_pie() 58 ELF_MACHINE_BEFORE_RTLD_RELOC (main_map, main_map->l_info); in _dl_relocate_static_pie() 63 ELF_DYNAMIC_RELOCATE (main_map, NULL, 0, 0, 0); in _dl_relocate_static_pie() 64 main_map->l_relocated = 1; in _dl_relocate_static_pie() 72 elf_setup_debug_entry (main_map, r); in _dl_relocate_static_pie()
|
D | dl-minimal.c | 59 lookup_malloc_symbol (struct link_map *main_map, const char *name, in lookup_malloc_symbol() argument 64 lookup_t result = _dl_lookup_symbol_x (name, main_map, &ref, in lookup_malloc_symbol() 65 main_map->l_scope, in lookup_malloc_symbol() 71 return _dl_sym_post (result, ref, value, 0, main_map); in lookup_malloc_symbol() 75 __rtld_malloc_init_real (struct link_map *main_map) in __rtld_malloc_init_real() argument 91 void *new_calloc = lookup_malloc_symbol (main_map, "calloc", &version); in __rtld_malloc_init_real() 92 void *new_free = lookup_malloc_symbol (main_map, "free", &version); in __rtld_malloc_init_real() 93 void *new_malloc = lookup_malloc_symbol (main_map, "malloc", &version); in __rtld_malloc_init_real() 94 void *new_realloc = lookup_malloc_symbol (main_map, "realloc", &version); in __rtld_malloc_init_real()
|
D | dl-init.c | 76 _dl_init (struct link_map *main_map, int argc, char **argv, char **env) in _dl_init() argument 78 ElfW(Dyn) *preinit_array = main_map->l_info[DT_PREINIT_ARRAY]; in _dl_init() 79 ElfW(Dyn) *preinit_array_size = main_map->l_info[DT_PREINIT_ARRAYSZ]; in _dl_init() 98 DSO_FILENAME (main_map->l_name)); in _dl_init() 100 addrs = (ElfW(Addr) *) (preinit_array->d_un.d_ptr + main_map->l_addr); in _dl_init() 115 i = main_map->l_searchlist.r_nlist; in _dl_init() 117 call_init (main_map->l_initfini[i], argc, argv, env); in _dl_init()
|
D | dl-find_object.c | 475 struct link_map *main_map = GL(dl_ns)[LM_ID_BASE]._ns_loaded; in rtld_hidden_def() local 478 if (!main_map->l_contiguous) in rtld_hidden_def() 481 _dl_find_object_from_map (main_map, &dlfo); in rtld_hidden_def() 485 for (const ElfW(Phdr) *ph = main_map->l_phdr, in rtld_hidden_def() 486 *ph_end = main_map->l_phdr + main_map->l_phnum; in rtld_hidden_def() 495 = ph->p_vaddr + main_map->l_addr; in rtld_hidden_def() 508 if (l != main_map && l == l->l_real) in rtld_hidden_def() 564 struct link_map *main_map = GL(dl_ns)[LM_ID_BASE]._ns_loaded; in _dl_find_object_init() local 566 if (main_map->l_contiguous) in _dl_find_object_init() 567 _dl_find_object_from_map (main_map, &_dlfo_main); in _dl_find_object_init()
|
D | tst-dl_find_object.c | 139 struct link_map *main_map = (struct link_map *) debug->r_map; in check_initial() local 140 TEST_COMPARE_STRING (main_map->l_name, ""); in check_initial() 153 from_map (main_map, &expected); in check_initial() 156 check ((void *) main_map->l_map_start, &expected, __LINE__); in check_initial() 157 check ((void *) (main_map->l_map_end - 1), &expected, __LINE__); in check_initial()
|
D | dl-load.c | 2038 struct link_map *main_map = GL(dl_ns)[LM_ID_BASE]._ns_loaded; in _dl_map_object() local 2053 did_main_map |= l == main_map; in _dl_map_object() 2059 && main_map != NULL && main_map->l_type != lt_loaded in _dl_map_object() 2060 && cache_rpath (main_map, &main_map->l_rpath_dirs, DT_RPATH, in _dl_map_object() 2063 &main_map->l_rpath_dirs, in _dl_map_object() 2064 &realname, &fb, loader ?: main_map, LA_SER_RUNPATH, in _dl_map_object() 2071 && main_map != NULL && main_map->l_type != lt_loaded) in _dl_map_object() 2075 if (cache_rpath (main_map, &l_rpath_dirs, in _dl_map_object() 2078 &realname, &fb, loader ?: main_map, in _dl_map_object()
|
D | setup-vdso.h | 20 setup_vdso (struct link_map *main_map __attribute__ ((unused)), in setup_vdso() argument 97 assert (l->l_prev == main_map); in setup_vdso()
|
/glibc-2.36/csu/ |
D | libc-tls.c | 116 struct link_map *main_map = GL(dl_ns)[LM_ID_BASE]._ns_loaded; in __libc_setup_tls() local 128 initimage = (void *) phdr->p_vaddr + main_map->l_addr; in __libc_setup_tls() 177 main_map->l_tls_offset = roundup (memsz, align ?: 1); in __libc_setup_tls() 180 main_map->l_tls_offset = tcb_offset; in __libc_setup_tls() 207 main_map->l_tls_align = align; in __libc_setup_tls() 208 main_map->l_tls_blocksize = memsz; in __libc_setup_tls() 209 main_map->l_tls_initimage = initimage; in __libc_setup_tls() 210 main_map->l_tls_initimage_size = filesz; in __libc_setup_tls() 211 main_map->l_tls_modid = 1; in __libc_setup_tls() 215 static_slotinfo.slotinfo[1].map = main_map; in __libc_setup_tls()
|
/glibc-2.36/sysdeps/nios2/ |
D | dl-init.c | 22 _dl_nios2_get_gp_value (struct link_map *main_map) in _dl_nios2_get_gp_value() argument 24 ElfW(Dyn) *dyn = main_map->l_ld; in _dl_nios2_get_gp_value() 25 for (dyn = main_map->l_ld; dyn->d_tag != DT_NULL; ++dyn) in _dl_nios2_get_gp_value()
|
/glibc-2.36/sysdeps/x86/ |
D | dl-cet.c | 251 _dl_cet_check (struct link_map *main_map, const char *program) in _dl_cet_check() argument 253 dl_cet_check (main_map, program); in _dl_cet_check()
|
/glibc-2.36/include/ |
D | rtld-malloc.h | 77 void __rtld_malloc_init_real (struct link_map *main_map) attribute_hidden;
|
/glibc-2.36/sysdeps/generic/ |
D | ldsodefs.h | 1044 extern void _dl_init (struct link_map *main_map, int argc, char **argv,
|
/glibc-2.36/ChangeLog.old/ |
D | ChangeLog.7 | 11401 * elf/rtld.c (dl_main): Set main_map->l_opencount to 1 also if 12782 Rename local variable l to main_map where it is used to point to
|
D | ChangeLog.8 | 7591 Install link maps for preloaded objects using main_map as loader.
|
D | ChangeLog.16 | 12747 * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
|
D | ChangeLog.19 | 24853 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
|
/glibc-2.36/posix/ |
D | tst-regex.input | 7591 Install link maps for preloaded objects using main_map as loader.
|