Home
last modified time | relevance | path

Searched refs:GLRO (Results 1 – 25 of 183) sorted by relevance

12345678

/glibc-2.36/elf/
Ddl-audit.c30 struct audit_ifaces *afct = GLRO(dl_audit); in _dl_audit_activity_map()
31 for (unsigned int cnt = 0; cnt < GLRO(dl_naudit); ++cnt) in _dl_audit_activity_map()
46 if (__glibc_likely (GLRO(dl_naudit) == 0) in _dl_audit_activity_nsid()
59 struct audit_ifaces *afct = GLRO(dl_audit); in _dl_audit_objsearch()
60 for (unsigned int cnt = 0; cnt < GLRO(dl_naudit); ++cnt) in _dl_audit_objsearch()
78 if (__glibc_likely (GLRO(dl_naudit) == 0)) in _dl_audit_objopen()
81 struct audit_ifaces *afct = GLRO(dl_audit); in _dl_audit_objopen()
82 for (unsigned int cnt = 0; cnt < GLRO(dl_naudit); ++cnt) in _dl_audit_objopen()
98 if (__glibc_likely (GLRO(dl_naudit) == 0) in _dl_audit_objclose()
102 struct audit_ifaces *afct = GLRO(dl_audit); in _dl_audit_objclose()
[all …]
Ddl-libc.c45 int result = (GLRO (dl_catch_error) (&objname, &last_errstring, &malloced, in dlerror_run()
50 GLRO (dl_error_free) ((char *) last_errstring); in dlerror_run()
95 args->map = GLRO(dl_open) (args->name, args->mode, args->caller_dlopen, in do_dlopen()
105 args->loadbase = GLRO(dl_lookup_symbol_x) (args->name, args->map, &args->ref, in do_dlsym()
116 = GLRO(dl_lookup_symbol_x) (args->dlsym.name, args->dlsym.map, in do_dlvsym()
125 GLRO(dl_close) ((struct link_map *) ptr); in do_dlclose()
142 l = GLRO(dl_lookup_symbol_x) (args->name, args->map, &args->ref, in do_dlsym_private()
159 if (GLRO (dl_dlfcn_hook) != NULL) in __libc_dlopen_mode()
160 return GLRO (dl_dlfcn_hook)->libc_dlopen_mode (name, mode); in __libc_dlopen_mode()
187 if (GLRO (dl_dlfcn_hook) != NULL) in __libc_dlsym()
[all …]
Dsetup-vdso.h24 if (GLRO(dl_sysinfo_dso) == NULL) in setup_vdso()
36 l->l_phdr = ((const void *) GLRO(dl_sysinfo_dso) in setup_vdso()
37 + GLRO(dl_sysinfo_dso)->e_phoff); in setup_vdso()
38 l->l_phnum = GLRO(dl_sysinfo_dso)->e_phnum; in setup_vdso()
62 l->l_map_start = (ElfW(Addr)) GLRO(dl_sysinfo_dso); in setup_vdso()
106 GLRO(dl_sysinfo_map) = l; in setup_vdso()
108 if (GLRO(dl_sysinfo) == DL_SYSINFO_DEFAULT) in setup_vdso()
109 GLRO(dl_sysinfo) = GLRO(dl_sysinfo_dso)->e_entry + l->l_addr; in setup_vdso()
Drtld.c460 GLRO (dl_find_object) = &_dl_find_object; in ElfW()
499 if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_STATISTICS)) in ElfW()
977 if (GLRO(dl_debug_mask) & DL_DEBUG_FILES) in load_audit_module()
1037 *last_audit = GLRO(dl_audit) = &newp->ifaces; in load_audit_module()
1043 link_map_audit_state (&GL (dl_rtld_map), GLRO (dl_naudit))->cookie in load_audit_module()
1046 ++GLRO(dl_naudit); in load_audit_module()
1068 if (GLRO(dl_naudit) > 0) in load_audit_modules()
1207 + (ph->p_vaddr & ~(GLRO(dl_pagesize) - 1))); in rtld_setup_main_map()
1224 expected_load_address = ((allocend + GLRO(dl_pagesize) - 1) in rtld_setup_main_map()
1225 & ~(GLRO(dl_pagesize) - 1)); in rtld_setup_main_map()
[all …]
Ddl-map-segments.h28 if (__glibc_likely (c->mapalign <= GLRO(dl_pagesize))) in ElfW()
58 map_end = ALIGN_UP (map_end, GLRO(dl_pagesize)); in ElfW()
157 zeropage = ((zero + GLRO(dl_pagesize) - 1) in _dl_map_segments()
158 & ~(GLRO(dl_pagesize) - 1)); in _dl_map_segments()
172 & ~(GLRO(dl_pagesize) - 1)), in _dl_map_segments()
173 GLRO(dl_pagesize), c->prot|PROT_WRITE) < 0) in _dl_map_segments()
178 __mprotect ((caddr_t) (zero & ~(GLRO(dl_pagesize) - 1)), in _dl_map_segments()
179 GLRO(dl_pagesize), c->prot); in _dl_map_segments()
Ddl-profile.c210 ElfW(Addr) start = (ph->p_vaddr & ~(GLRO(dl_pagesize) - 1)); in _dl_start_profile()
211 ElfW(Addr) end = ((ph->p_vaddr + ph->p_memsz + GLRO(dl_pagesize) - 1) in _dl_start_profile()
212 & ~(GLRO(dl_pagesize) - 1)); in _dl_start_profile()
321 filename = (char *) alloca (strlen (GLRO(dl_profile_output)) + 1 in _dl_start_profile()
322 + strlen (GLRO(dl_profile)) + sizeof ".profile"); in _dl_start_profile()
323 cp = __stpcpy (filename, GLRO(dl_profile_output)); in _dl_start_profile()
325 __stpcpy (__stpcpy (cp, GLRO(dl_profile)), ".profile"); in _dl_start_profile()
356 char buf[GLRO(dl_pagesize)]; in _dl_start_profile()
358 memset (buf, '\0', GLRO(dl_pagesize)); in _dl_start_profile()
360 if (__lseek (fd, expected_size & ~(GLRO(dl_pagesize) - 1), SEEK_SET) == -1) in _dl_start_profile()
[all …]
Ddl-reloc.c57 || map->l_tls_align > GLRO (dl_tls_static_align)) in _dl_try_allocate_static_tls()
64 size_t freebytes = GLRO (dl_tls_static_size) - GL(dl_tls_static_used); in _dl_try_allocate_static_tls()
93 if (used > GLRO (dl_tls_static_size)) in _dl_try_allocate_static_tls()
225 struct audit_ifaces *afct = GLRO(dl_audit); in _dl_relocate_object()
226 for (unsigned int cnt = 0; cnt < GLRO(dl_naudit); ++cnt) in _dl_relocate_object()
255 if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_RELOC)) in _dl_relocate_object()
273 newp->len = ALIGN_UP (ph->p_vaddr + ph->p_memsz, GLRO(dl_pagesize)) in _dl_relocate_object()
274 - ALIGN_DOWN (ph->p_vaddr, GLRO(dl_pagesize)); in _dl_relocate_object()
275 newp->start = PTR_ALIGN_DOWN (ph->p_vaddr, GLRO(dl_pagesize)) in _dl_relocate_object()
358 GLRO(dl_pagesize)); in _dl_protect_relro()
[all …]
Ddl-diagnostics.c235 _dl_diagnostics_print_labeled_value ("dl_hwcap", GLRO (dl_hwcap)); in _dl_print_diagnostics()
237 _dl_diagnostics_print_labeled_value ("dl_hwcap2", GLRO (dl_hwcap2)); in _dl_print_diagnostics()
242 _dl_diagnostics_print_labeled_value ("dl_pagesize", GLRO (dl_pagesize)); in _dl_print_diagnostics()
243 _dl_diagnostics_print_labeled_string ("dl_platform", GLRO (dl_platform)); in _dl_print_diagnostics()
245 ("dl_profile_output", GLRO (dl_profile_output)); in _dl_print_diagnostics()
247 ("dl_string_platform", _dl_string_platform ( GLRO (dl_platform))); in _dl_print_diagnostics()
Ddl-minimal-malloc.c42 + GLRO(dl_pagesize) - 1) in __minimal_malloc()
43 & ~(GLRO(dl_pagesize) - 1)); in __minimal_malloc()
55 size_t nup = (n + GLRO(dl_pagesize) - 1) & ~(GLRO(dl_pagesize) - 1); in __minimal_malloc()
58 nup += GLRO(dl_pagesize); in __minimal_malloc()
/glibc-2.36/sysdeps/unix/sysv/linux/
Ddl-parse_auxv.h45 GLRO(dl_pagesize) = auxv_values[AT_PAGESZ]; in _dl_parse_auxv()
47 GLRO(dl_platform) = (void *) auxv_values[AT_PLATFORM]; in _dl_parse_auxv()
48 GLRO(dl_hwcap) = auxv_values[AT_HWCAP]; in _dl_parse_auxv()
49 GLRO(dl_hwcap2) = auxv_values[AT_HWCAP2]; in _dl_parse_auxv()
50 GLRO(dl_clktck) = auxv_values[AT_CLKTCK]; in _dl_parse_auxv()
51 GLRO(dl_fpu_control) = auxv_values[AT_FPUCW]; in _dl_parse_auxv()
53 GLRO(dl_minsigstacksize) = auxv_values[AT_MINSIGSTKSZ]; in _dl_parse_auxv()
54 GLRO(dl_sysinfo_dso) = (void *) auxv_values[AT_SYSINFO_EHDR]; in _dl_parse_auxv()
56 if (GLRO(dl_sysinfo_dso) != NULL) in _dl_parse_auxv()
57 GLRO(dl_sysinfo) = auxv_values[AT_SYSINFO]; in _dl_parse_auxv()
Ddl-vdso-setup.h27 GLRO(dl_vdso_clock_gettime) = dl_vdso_vsym (HAVE_CLOCK_GETTIME_VSYSCALL); in setup_vdso_pointers()
30 GLRO(dl_vdso_clock_gettime64) = dl_vdso_vsym (HAVE_CLOCK_GETTIME64_VSYSCALL); in setup_vdso_pointers()
33 GLRO(dl_vdso_gettimeofday) = dl_vdso_vsym (HAVE_GETTIMEOFDAY_VSYSCALL); in setup_vdso_pointers()
36 GLRO(dl_vdso_time) = dl_vdso_vsym (HAVE_TIME_VSYSCALL); in setup_vdso_pointers()
39 GLRO(dl_vdso_getcpu) = dl_vdso_vsym (HAVE_GETCPU_VSYSCALL); in setup_vdso_pointers()
42 GLRO(dl_vdso_clock_getres) = dl_vdso_vsym (HAVE_CLOCK_GETRES_VSYSCALL); in setup_vdso_pointers()
45 GLRO(dl_vdso_clock_getres_time64) = dl_vdso_vsym (HAVE_CLOCK_GETRES64_VSYSCALL); in setup_vdso_pointers()
48 GLRO(dl_vdso_get_tbfreq) = dl_vdso_vsym (HAVE_GET_TBFREQ); in setup_vdso_pointers()
Ddl-sysdep.c86 GLRO(dl_auxv) = (ElfW(auxv_t) *) (tmp + 1); in _dl_sysdep_parse_arguments()
91 _dl_parse_auxv (GLRO(dl_auxv), auxv_values); in _dl_sysdep_parse_arguments()
122 if (GLRO(dl_platform) != NULL) in _dl_sysdep_start()
123 GLRO(dl_platformlen) = strlen (GLRO(dl_platform)); in _dl_sysdep_start()
131 __sbrk (GLRO(dl_pagesize) in _dl_sysdep_start()
132 - ((_end - (char *) 0) & (GLRO(dl_pagesize) - 1))); in _dl_sysdep_start()
141 &dl_main_args.user_entry, GLRO(dl_auxv)); in _dl_sysdep_start()
164 for (av = GLRO(dl_auxv); av->a_type != AT_NULL; ++av) in _dl_show_auxv()
/glibc-2.36/sysdeps/s390/s390-64/
Ddl-hwcaps-subdirs.c33 if (!(GLRO (dl_hwcap) & HWCAP_S390_VX)) in _dl_hwcaps_subdirs_active()
38 if (!((GLRO (dl_hwcap) & HWCAP_S390_VXD) in _dl_hwcaps_subdirs_active()
39 && (GLRO (dl_hwcap) & HWCAP_S390_VXE) in _dl_hwcaps_subdirs_active()
40 && (GLRO (dl_hwcap) & HWCAP_S390_GS))) in _dl_hwcaps_subdirs_active()
48 if (!((GLRO (dl_hwcap) & HWCAP_S390_VXRS_EXT2) in _dl_hwcaps_subdirs_active()
49 && (GLRO (dl_hwcap) & HWCAP_S390_VXRS_PDE))) in _dl_hwcaps_subdirs_active()
56 if (!(GLRO (dl_hwcap) & HWCAP_S390_VXRS_PDE2)) in _dl_hwcaps_subdirs_active()
Ddl-machine.h116 if (GLRO(dl_hwcap) & HWCAP_S390_VX) in elf_machine_runtime_setup()
124 if (GLRO(dl_profile) != NULL in elf_machine_runtime_setup()
125 && _dl_name_match_p (GLRO(dl_profile), l)) in elf_machine_runtime_setup()
135 if (GLRO(dl_hwcap) & HWCAP_S390_VX) in elf_machine_runtime_setup()
220 if (GLRO(dl_platform) != NULL && *GLRO(dl_platform) == '\0') in dl_platform_init()
222 GLRO(dl_platform) = NULL; in dl_platform_init()
348 && __builtin_expect (GLRO(dl_verbose), 0))) in elf_machine_rela()
Ddl-hwcap-check.h30 if (!(GLRO(dl_hwcap) & HWCAP_S390_VXRS_PDE2)) in dl_hwcap_check()
34 if (!(GLRO(dl_hwcap) & HWCAP_S390_VXRS_EXT2)) in dl_hwcap_check()
38 if (!(GLRO(dl_hwcap) & HWCAP_S390_VXE)) in dl_hwcap_check()
/glibc-2.36/sysdeps/sparc/sparc32/
Ddl-machine.h44 return GLRO(dl_hwcap) & hwcap_mask & HWCAP_SPARC_V9; in elf_machine_matches_host()
46 return GLRO(dl_hwcap) & HWCAP_SPARC_V9; in elf_machine_matches_host()
122 if (GLRO(dl_profile) != NULL in elf_machine_runtime_setup()
123 && _dl_name_match_p (GLRO(dl_profile), l)) in elf_machine_runtime_setup()
229 const int do_flush = GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH; in elf_machine_fixup_plt()
303 value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); in elf_machine_rela()
315 || (GLRO(dl_verbose) && sym->st_size < refsym->st_size)) in elf_machine_rela()
334 value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); in elf_machine_rela()
339 value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); in elf_machine_rela()
347 const int do_flush = GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH; in elf_machine_rela()
[all …]
/glibc-2.36/sysdeps/aarch64/multiarch/
Dinit-arch.h26 #define MTE_ENABLED() (GLRO(dl_hwcap2) & HWCAP2_MTE)
30 GLRO(dl_aarch64_cpu_features).midr_el1; \
32 GLRO(dl_aarch64_cpu_features).zva_size; \
34 HAVE_AARCH64_BTI && GLRO(dl_aarch64_cpu_features).bti; \
38 GLRO(dl_aarch64_cpu_features).sve;
/glibc-2.36/sysdeps/powerpc/powerpc64/multiarch/
Dmemset.c47 && GLRO(dl_cache_line_size) == 128)
52 && GLRO(dl_cache_line_size) == 128)
55 && GLRO(dl_cache_line_size) == 128)
58 && GLRO(dl_cache_line_size) == 128)
61 && GLRO(dl_cache_line_size) == 128)
/glibc-2.36/sysdeps/s390/s390-32/
Ddl-machine.h42 && !(GLRO (dl_hwcap) & HWCAP_S390_HIGH_GPRS)) in elf_machine_matches_host()
127 if (GLRO(dl_hwcap) & HWCAP_S390_VX) in elf_machine_runtime_setup()
135 if (GLRO(dl_profile) != NULL in elf_machine_runtime_setup()
136 && _dl_name_match_p (GLRO(dl_profile), l)) in elf_machine_runtime_setup()
146 if (GLRO(dl_hwcap) & HWCAP_S390_VX) in elf_machine_runtime_setup()
242 if (GLRO(dl_platform) != NULL && *GLRO(dl_platform) == '\0') in dl_platform_init()
244 GLRO(dl_platform) = NULL; in dl_platform_init()
371 && __builtin_expect (GLRO(dl_verbose), 0))) in elf_machine_rela()
/glibc-2.36/sysdeps/powerpc/powerpc64/le/
Ddl-hwcap-check.h29 if ((GLRO (dl_hwcap2) & PPC_FEATURE2_ARCH_3_00) == 0) in dl_hwcap_check()
34 if ((GLRO (dl_hwcap2) & PPC_FEATURE2_HAS_IEEE128) == 0) in dl_hwcap_check()
42 if ((GLRO (dl_hwcap2) & PPC_FEATURE2_ARCH_3_1) == 0) in dl_hwcap_check()
47 if ((GLRO (dl_hwcap2) & PPC_FEATURE2_MMA) == 0) in dl_hwcap_check()
Ddl-hwcaps-subdirs.c34 if ((GLRO (dl_hwcap2) & PPC_FEATURE2_ARCH_3_00) == 0 in _dl_hwcaps_subdirs_active()
35 || (GLRO (dl_hwcap2) & PPC_FEATURE2_HAS_IEEE128) == 0) in _dl_hwcaps_subdirs_active()
40 if ((GLRO (dl_hwcap2) & PPC_FEATURE2_ARCH_3_1) == 0 in _dl_hwcaps_subdirs_active()
41 || (GLRO (dl_hwcap2) & PPC_FEATURE2_MMA) == 0) in _dl_hwcaps_subdirs_active()
/glibc-2.36/sysdeps/arm/
Ddl-machine.h95 if (GLRO(dl_profile) != NULL in elf_machine_runtime_setup()
96 && _dl_name_match_p (GLRO(dl_profile), l)) in elf_machine_runtime_setup()
200 if (GLRO(dl_platform) != NULL && *GLRO(dl_platform) == '\0') in dl_platform_init()
202 GLRO(dl_platform) = NULL; in dl_platform_init()
253 void *new_page = __mmap (NULL, GLRO(dl_pagesize), in relocate_pc24()
268 if (fix_offset >= GLRO(dl_pagesize)) in relocate_pc24()
324 || (GLRO(dl_verbose) && sym->st_size < refsym->st_size)) in elf_machine_rel()
439 value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); in elf_machine_rel()
486 || (GLRO(dl_verbose) && sym->st_size < refsym->st_size)) in elf_machine_rela()
529 value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); in elf_machine_rela()
/glibc-2.36/sysdeps/unix/sysv/linux/aarch64/
Dcpu-features.c80 if (GLRO (dl_hwcap) & HWCAP_CPUID) in init_cpu_features()
96 cpu_features->bti = GLRO (dl_hwcap2) & HWCAP2_BTI; in init_cpu_features()
105 cpu_features->mte_state = (GLRO (dl_hwcap2) & HWCAP2_MTE) ? mte_state : 0; in init_cpu_features()
128 cpu_features->sve = GLRO (dl_hwcap) & HWCAP_SVE; in init_cpu_features()
/glibc-2.36/sysdeps/aarch64/
Ddl-machine.h90 if (GLRO(dl_profile) != NULL in elf_machine_runtime_setup()
91 && _dl_name_match_p (GLRO(dl_profile), l)) in elf_machine_runtime_setup()
126 if (GLRO(dl_platform) != NULL && *GLRO(dl_platform) == '\0') in dl_platform_init()
128 GLRO(dl_platform) = NULL; in dl_platform_init()
133 init_cpu_features (&GLRO(dl_aarch64_cpu_features)); in dl_platform_init()
213 || (GLRO(dl_verbose) && sym->st_size < refsym->st_size)) in elf_machine_rela()
/glibc-2.36/sysdeps/sh/
Ddl-machine.h108 if (GLRO(dl_profile) != NULL in elf_machine_runtime_setup()
109 && _dl_name_match_p (GLRO(dl_profile), l)) in elf_machine_runtime_setup()
215 if (GLRO(dl_platform) != NULL && *GLRO(dl_platform) == '\0') in dl_platform_init()
217 GLRO(dl_platform) = NULL; in dl_platform_init()
321 || (sym->st_size < refsym->st_size && GLRO(dl_verbose))) in elf_machine_rela()

12345678