Lines Matching refs:name
19 static uint32_t elf_hash(const char *name) in elf_hash() argument
21 const unsigned char *p = (const unsigned char *)name; in elf_hash()
37 size_t st_name, size_t st_value, const char *name, in __resolve_sym() argument
46 if (strcmp(name, elf->dynstr + st_name)) in __resolve_sym()
81 static TEE_Result resolve_sym_helper(uint32_t hash, const char *name, in resolve_sym_helper() argument
115 sym[n].st_value, name, val, weak_ok)) in resolve_sym_helper()
137 sym[n].st_value, name, val, weak_ok)) in resolve_sym_helper()
153 TEE_Result ta_elf_resolve_sym(const char *name, vaddr_t *val, in ta_elf_resolve_sym() argument
157 uint32_t hash = elf_hash(name); in ta_elf_resolve_sym()
161 if (!resolve_sym_helper(hash, name, val, elf, in ta_elf_resolve_sym()
165 if (!resolve_sym_helper(hash, name, val, elf, in ta_elf_resolve_sym()
171 if (!resolve_sym_helper(hash, name, val, elf, in ta_elf_resolve_sym()
174 if (!resolve_sym_helper(hash, name, val, elf, in ta_elf_resolve_sym()
189 Elf32_Rel *rel, const char **name) in e32_get_sym_name() argument
202 *name = str_tab + name_idx; in e32_get_sym_name()
205 static void resolve_sym(const char *name, vaddr_t *val, struct ta_elf **mod) in resolve_sym() argument
207 TEE_Result res = ta_elf_resolve_sym(name, val, mod, NULL); in resolve_sym()
210 err(res, "Symbol %s not found", name); in resolve_sym()
217 const char *name = NULL; in e32_process_dyn_rel() local
220 e32_get_sym_name(sym_tab, num_syms, str_tab, str_tab_size, rel, &name); in e32_process_dyn_rel()
221 resolve_sym(name, &val, NULL); in e32_process_dyn_rel()
229 const char *name = NULL; in e32_tls_get_module() local
241 e32_get_sym_name(sym_tab, num_syms, str_tab, str_tab_size, rel, &name); in e32_tls_get_module()
242 resolve_sym(name, NULL, mod); in e32_tls_get_module()
249 const char *name = NULL; in e32_tls_resolve() local
251 e32_get_sym_name(sym_tab, num_syms, str_tab, str_tab_size, rel, &name); in e32_tls_resolve()
252 resolve_sym(name, val, NULL); in e32_tls_resolve()
403 Elf64_Rela *rela, const char **name) in e64_get_sym_name() argument
416 *name = str_tab + name_idx; in e64_get_sym_name()
423 const char *name = NULL; in e64_process_dyn_rela() local
426 e64_get_sym_name(sym_tab, num_syms, str_tab, str_tab_size, rela, &name); in e64_process_dyn_rela()
427 resolve_sym(name, &val, NULL); in e64_process_dyn_rela()
437 const char *name = NULL; in e64_process_tls_tprel_rela() local
444 &name); in e64_process_tls_tprel_rela()
445 resolve_sym(name, &symval, &mod); in e64_process_tls_tprel_rela()