Lines Matching refs:se_sym
59 GElf_Sym se_sym; /* value of symbol */ member
161 if (syma->se_sym.st_value < symb->se_sym.st_value) in sym_compare()
164 if (syma->se_sym.st_value > symb->se_sym.st_value) in sym_compare()
170 if (GELF_ST_TYPE(syma->se_sym.st_info) != in sym_compare()
171 GELF_ST_TYPE(symb->se_sym.st_info)) { in sym_compare()
172 if (GELF_ST_TYPE(syma->se_sym.st_info) == STT_FUNC) in sym_compare()
174 if (GELF_ST_TYPE(symb->se_sym.st_info) == STT_FUNC) in sym_compare()
186 if (GELF_ST_BIND(syma->se_sym.st_info) != in sym_compare()
187 GELF_ST_BIND(symb->se_sym.st_info)) { in sym_compare()
188 if (GELF_ST_BIND(syma->se_sym.st_info) == STB_WEAK) in sym_compare()
190 if (GELF_ST_BIND(symb->se_sym.st_info) == STB_WEAK) in sym_compare()
193 if (GELF_ST_BIND(syma->se_sym.st_info) == STB_GLOBAL) in sym_compare()
195 if (GELF_ST_BIND(symb->se_sym.st_info) == STB_GLOBAL) in sym_compare()
221 if (syma->se_sym.st_size < symb->se_sym.st_size) in sym_compare()
223 if (syma->se_sym.st_size > symb->se_sym.st_size) in sym_compare()
285 if (gelf_getsym(symdata, i, &(sym->se_sym)) == NULL) { in construct_symtab()
295 if (!IS_DATA_TYPE(GELF_ST_TYPE(sym->se_sym.st_info))) { in construct_symtab()
300 if (sym->se_sym.st_shndx == SHN_XINDEX && symshndx != NULL) { in construct_symtab()
309 sym->se_shndx = sym->se_sym.st_shndx; in construct_symtab()
320 if (sym->se_sym.st_value == 0) { in construct_symtab()
354 (size_t)sym->se_sym.st_name)) == NULL) { in construct_symtab()
366 sym->se_sym.st_value += in construct_symtab()
656 addr >= tgt->dt_symcache->se_sym.st_value && in dis_tgt_lookup()
657 addr < tgt->dt_symcache->se_sym.st_value + in dis_tgt_lookup()
658 tgt->dt_symcache->se_sym.st_size) { in dis_tgt_lookup()
660 *offset = addr - sym->se_sym.st_value; in dis_tgt_lookup()
661 *size = sym->se_sym.st_size; in dis_tgt_lookup()
663 *isfunc = (GELF_ST_TYPE(sym->se_sym.st_info) == in dis_tgt_lookup()
677 if (addr >= sym->se_sym.st_value && in dis_tgt_lookup()
678 addr < sym->se_sym.st_value + sym->se_sym.st_size && in dis_tgt_lookup()
679 (!found || sym->se_sym.st_value > osym->se_sym.st_value)) { in dis_tgt_lookup()
682 } else if (addr == sym->se_sym.st_value) { in dis_tgt_lookup()
691 if (addr < sym->se_sym.st_value) in dis_tgt_lookup()
714 } while ((sym->se_sym.st_value == osym->se_sym.st_value) && in dis_tgt_lookup()
715 (addr >= osym->se_sym.st_value) && in dis_tgt_lookup()
716 (addr < osym->se_sym.st_value + osym->se_sym.st_size)); in dis_tgt_lookup()
721 *offset = addr - sym->se_sym.st_value; in dis_tgt_lookup()
722 *size = sym->se_sym.st_size; in dis_tgt_lookup()
724 *isfunc = (GELF_ST_TYPE(sym->se_sym.st_info) == STT_FUNC); in dis_tgt_lookup()
741 if (sym->se_sym.st_value >= addr) in dis_tgt_next_symbol()
742 return (sym->se_sym.st_value - addr); in dis_tgt_next_symbol()
880 if ((GELF_ST_TYPE(sym->se_sym.st_info) != STT_FUNC) || in dis_tgt_function_iter()
882 (sym->se_sym.st_size == 0) || in dis_tgt_function_iter()
903 if (sym->se_sym.st_value < shdr.sh_addr || in dis_tgt_function_iter()
904 (sym->se_sym.st_value + sym->se_sym.st_size) > in dis_tgt_function_iter()
907 tgt->dt_filename, sym->se_sym.st_shndx, in dis_tgt_function_iter()
908 sym->se_sym.st_value); in dis_tgt_function_iter()
913 df.df_offset = sym->se_sym.st_value - shdr.sh_addr; in dis_tgt_function_iter()
934 return (func->df_sym->se_sym.st_size); in dis_function_size()
943 return (func->df_sym->se_sym.st_value); in dis_function_addr()