Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 13 of 13) sorted by relevance

/elf/
A Ddl-symaddr.c23 _dl_symbol_address (struct link_map *map, const ElfW(Sym) *ref) in _dl_symbol_address() argument
25 ElfW(Addr) value = SYMBOL_ADDRESS (map, ref, false); in _dl_symbol_address()
28 if (ELFW(ST_TYPE) (ref->st_info) == STT_FUNC) in _dl_symbol_address()
29 return (void *) _dl_make_fptr (map, ref, value); in _dl_symbol_address()
A Dtst-absolute-sym.c28 void *ref = (void *) 0x55aa; in do_test() local
32 if (ptr != ref) in do_test()
33 FAIL_EXIT1 ("Got %p, expected %p\n", ptr, ref); in do_test()
A Dtst-absolute-zero.c28 void *ref = (void *) 0; in do_test() local
32 if (ptr != ref) in do_test()
33 FAIL_EXIT1 ("Got %p, expected %p\n", ptr, ref); in do_test()
A Ddl-sym.c45 _dl_tls_symaddr (struct link_map *map, const ElfW(Sym) *ref) in _dl_tls_symaddr() argument
51 .ti_offset = ref->st_value in _dl_tls_symaddr()
56 return __TLS_GET_ADDR (map->l_tls_modid, ref->st_value); in _dl_tls_symaddr()
88 const ElfW(Sym) *ref = NULL; in do_sym()
105 result = GLRO(dl_lookup_symbol_x) (name, match, &ref, in do_sym()
117 args.refp = &ref; in do_sym()
157 if (ref != NULL) in do_sym()
162 if (ELFW(ST_TYPE) (ref->st_info) == STT_TLS) in do_sym()
165 value = _dl_tls_symaddr (result, ref); in do_sym()
168 value = DL_SYMBOL_ADDRESS (result, ref); in do_sym()
[all …]
A Ddl-conflict.c35 #define RESOLVE_MAP(map, scope, ref, version, flags) (*ref = NULL, NULL) argument
36 #define RESOLVE(ref, version, flags) (*ref = NULL, 0) argument
A Ddl-sym-post.h37 _dl_sym_post (lookup_t result, const ElfW(Sym) *ref, void *value, in _dl_sym_post() argument
41 if (__glibc_unlikely (ELFW(ST_TYPE) (ref->st_info) == STT_GNU_IFUNC)) in _dl_sym_post()
57 _dl_audit_symbind_alt (match, ref, &value, result); in _dl_sym_post()
A Ddl-libc.c78 const ElfW(Sym) *ref;
104 args->ref = NULL; in do_dlsym()
105 args->loadbase = GLRO(dl_lookup_symbol_x) (args->name, args->map, &args->ref, in do_dlsym()
114 args->dlsym.ref = NULL; in do_dlvsym()
117 &args->dlsym.ref, in do_dlvsym()
141 args->ref = NULL; in do_dlsym_private()
142 l = GLRO(dl_lookup_symbol_x) (args->name, args->map, &args->ref, in do_dlsym_private()
174 return DL_SYMBOL_ADDRESS (sargs.loadbase, sargs.ref); in __libc_dlsym_private()
191 : (void *) (DL_SYMBOL_ADDRESS (args.loadbase, args.ref))); in __libc_dlsym()
217 args.dlsym.ref))); in __libc_dlvsym()
A Ddl-minimal.c63 const ElfW(Sym) *ref = NULL; in lookup_malloc_symbol()
64 lookup_t result = _dl_lookup_symbol_x (name, main_map, &ref, in lookup_malloc_symbol()
68 assert (ELFW(ST_TYPE) (ref->st_info) != STT_TLS); in lookup_malloc_symbol()
69 void *value = DL_SYMBOL_ADDRESS (result, ref); in lookup_malloc_symbol()
71 return _dl_sym_post (result, ref, value, 0, main_map); in lookup_malloc_symbol()
A Ddl-lookup.c60 const ElfW(Sym) *const ref, in ElfW()
557 result, type_class, sym, strtab, ref, in do_lookup_x()
823 const ElfW(Sym) **ref, struct sym_val *value,
836 const ElfW(Sym) **ref, in _dl_lookup_symbol_x()
867 if ((*ref == NULL || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK) in _dl_lookup_symbol_x()
884 *ref = NULL; in _dl_lookup_symbol_x()
888 int protected = (*ref in _dl_lookup_symbol_x()
898 current_value.s = *ref; in _dl_lookup_symbol_x()
919 current_value.s = *ref; in _dl_lookup_symbol_x()
948 _dl_debug_bindings (undef_name, undef_map, ref, in _dl_lookup_symbol_x()
[all …]
A Ddl-reloc.c166 #define RESOLVE_MAP(l, scope, ref, version, r_type) \ argument
167 ((ELFW(ST_BIND) ((*ref)->st_info) != STB_LOCAL \
168 && __glibc_likely (!dl_symbol_visibility_binds_local_p (*ref))) \
169 ? ((__glibc_unlikely ((*ref) == l->l_lookup_cache.sym) \
172 (*ref) = l->l_lookup_cache.ret, \
177 l->l_lookup_cache.sym = (*ref); \
181 _lr = _dl_lookup_symbol_x ((const char *) D_PTR (l, l_info[DT_STRTAB]) + (*ref)->st_name, \
182 l, (ref), scope, v, _tc, \
185 l->l_lookup_cache.ret = (*ref); \
A Ddl-audit.c131 _dl_audit_symbind_alt (struct link_map *l, const ElfW(Sym) *ref, void **value, in _dl_audit_symbind_alt() argument
140 unsigned int ndx = (ref - (ElfW(Sym) *) D_PTR (result, l_info[DT_SYMTAB])); in _dl_audit_symbind_alt()
144 ElfW(Sym) sym = *ref; in _dl_audit_symbind_alt()
161 &flags, strtab + ref->st_name); in _dl_audit_symbind_alt()
A Drtld.c681 const ElfW(Sym) *ref = NULL; in lookup_doit()
683 lookup_t l = _dl_lookup_symbol_x (args->name, args->map, &ref, in lookup_doit()
686 if (ref != NULL) in lookup_doit()
687 args->result = DL_SYMBOL_ADDRESS (l, ref); in lookup_doit()
2119 const ElfW(Sym) *ref = NULL; in dl_main()
2124 &ref, main_map->l_scope, in dl_main()
2132 (int) sizeof ref->st_value * 2, in dl_main()
2133 (size_t) ref->st_value, in dl_main()
A Ddl-load.c201 is_dst (const char *input, const char *ref) in is_dst() argument
215 size_t rlen = strlen (ref); in is_dst()
216 if (strncmp (input, ref, rlen) != 0 in is_dst()

Completed in 18 milliseconds