Lines Matching refs:sym
65 GElf_Sym sym; member
75 struct elf_sym sym; member
119 struct elf_sym *ret = &iter->sym; in elf_sym_iter_next()
120 GElf_Sym *sym = &ret->sym; in elf_sym_iter_next() local
126 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next()
128 if (GELF_ST_TYPE(sym->st_info) != iter->st_type) in elf_sym_iter_next()
130 name = elf_strptr(iter->elf, iter->strtabidx, sym->st_name); in elf_sym_iter_next()
133 sym_scn = elf_getscn(iter->elf, sym->st_shndx); in elf_sym_iter_next()
156 static unsigned long elf_sym_offset(struct elf_sym *sym) in elf_sym_offset() argument
158 return sym->sym.st_value - sym->sh.sh_addr + sym->sh.sh_offset; in elf_sym_offset()
193 struct elf_sym *sym; in elf_find_func_offset() local
203 while ((sym = elf_sym_iter_next(&iter))) { in elf_find_func_offset()
205 if (strncmp(sym->name, name, name_len) != 0) in elf_find_func_offset()
210 if (!is_name_qualified && sym->name[name_len] != '\0' && sym->name[name_len] != '@') in elf_find_func_offset()
213 cur_bind = GELF_ST_BIND(sym->sym.st_info); in elf_find_func_offset()
220 sym->name, name, binary_path); in elf_find_func_offset()
231 ret = elf_sym_offset(sym); in elf_find_func_offset()
320 struct elf_sym *sym; in elf_resolve_syms_offsets() local
328 while ((sym = elf_sym_iter_next(&iter))) { in elf_resolve_syms_offsets()
329 unsigned long sym_offset = elf_sym_offset(sym); in elf_resolve_syms_offsets()
330 int bind = GELF_ST_BIND(sym->sym.st_info); in elf_resolve_syms_offsets()
332 .name = sym->name, in elf_resolve_syms_offsets()
349 sym->name, sym_offset, binary_path, *offset); in elf_resolve_syms_offsets()
401 struct elf_sym *sym; in elf_resolve_pattern_offsets() local
409 while ((sym = elf_sym_iter_next(&iter))) { in elf_resolve_pattern_offsets()
410 if (!glob_match(sym->name, pattern)) in elf_resolve_pattern_offsets()
418 offsets[cnt++] = elf_sym_offset(sym); in elf_resolve_pattern_offsets()