/titanic_51/usr/src/cmd/sgs/prof/common/ |
H A D | rdelf.c | 172 if (GELF_ST_TYPE(sym->st_info) == STT_FUNC) { in is_function() 173 if (GELF_ST_BIND(sym->st_info) == STB_GLOBAL) in is_function() 176 if (GELF_ST_BIND(sym->st_info) == STB_WEAK) in is_function() 179 if (gflag && GELF_ST_BIND(sym->st_info) == STB_LOCAL) in is_function() 186 if (GELF_ST_TYPE(sym->st_info) != STT_NOTYPE) in is_function() 193 if (GELF_ST_BIND(sym->st_info) != STB_GLOBAL && in is_function() 194 GELF_ST_BIND(sym->st_info) != STB_WEAK && in is_function() 195 !(gflag && GELF_ST_BIND(sym->st_info) == STB_LOCAL)) in is_function() 329 npe->info = gsym.st_info; in fetch_symtab()
|
/titanic_51/usr/src/cmd/sgs/libld/common/ |
H A D | machsym.sparc.c | 74 if ((ELF_ST_BIND(osym->st_info) == STB_LOCAL) || in ld_reg_check_sparc() 75 (ELF_ST_BIND(nsym->st_info) == STB_LOCAL)) { in ld_reg_check_sparc() 131 Byte otype = ELF_ST_TYPE(osym->st_info); in ld_mach_sym_typecheck_sparc() 132 Byte ntype = ELF_ST_TYPE(nsym->st_info); in ld_mach_sym_typecheck_sparc() 169 if (ELF_ST_TYPE(sym->st_info) != STT_SPARC_REGISTER) in ld_is_regsym_sparc() 198 if ((ELF_ST_BIND(sym->st_info) != STB_GLOBAL) || in ld_is_regsym_sparc()
|
H A D | resolve.c | 271 uchar_t otype = ELF_ST_TYPE(sdp->sd_sym->st_info); in sym_typecheck() 272 uchar_t ntype = ELF_ST_TYPE(nsym->st_info); in sym_typecheck() 348 (ELF_ST_BIND(nsym->st_info) == STB_GLOBAL)) in sym_promote() 371 if ((ELF_ST_BIND(osym->st_info) == STB_WEAK) && in sym_override() 457 (ELF_ST_BIND(nsym->st_info) == STB_GLOBAL)) in sym_override() 524 uchar_t obind = ELF_ST_BIND(osym->st_info); in sym_twoundefs() 525 uchar_t otype = ELF_ST_TYPE(osym->st_info); in sym_twoundefs() 526 uchar_t nbind = ELF_ST_BIND(nsym->st_info); in sym_twoundefs() 527 uchar_t ntype = ELF_ST_TYPE(nsym->st_info); in sym_twoundefs() 555 uchar_t otype = ELF_ST_TYPE(osym->st_info); in sym_tworeals() [all...] |
H A D | sunwmove.c | 260 (ELF_ST_BIND(sym->st_info) == STB_LOCAL) && in ld_process_move() 261 (ELF_ST_TYPE(sym->st_info) == STT_OBJECT)) { in ld_process_move() 337 if (ELF_ST_TYPE(sym->st_info) == STT_SECTION) { in ld_process_move() 349 if (ELF_ST_TYPE(sym->st_info) == STT_SECTION) { in ld_process_move() 361 (ELF_ST_TYPE(sym->st_info) == STT_OBJECT)) { in ld_process_move() 372 if ((ELF_ST_BIND(sym->st_info) == STB_LOCAL) && in ld_process_move()
|
H A D | relocate.c | 265 rtype = ELF_ST_TYPE(rsym->st_info); in disp_scansyms() 284 (ELF_ST_BIND(tsdp->sd_sym->st_info) != STB_GLOBAL) || in disp_scansyms() 293 ttype = ELF_ST_TYPE(tsym->st_info); in disp_scansyms() 775 if ((ELF_ST_TYPE(sdp->sd_sym->st_info) == STT_SECTION) && in ld_reloc_sym_name() 1038 if (ELF_ST_TYPE(sym->st_info) == STT_FUNC) in reloc_exec() 1064 if ((ELF_ST_TYPE(sym->st_info) == STT_OBJECT) && in reloc_exec() 1078 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) { in reloc_exec() 1083 ELF_ST_TYPE(sym->st_info), 0, &inv_buf), in reloc_exec() 1114 if (ELF_ST_BIND(_sdp->sd_sym->st_info) == STB_GLOBAL) in reloc_exec() 1125 if (ELF_ST_BIND(sym->st_info) in reloc_exec() [all...] |
H A D | syms.c | 122 if ((name == 0) && (ELF_ST_BIND(sym->st_info) != STB_LOCAL)) { in string() 525 (ELF_ST_BIND(nsym->st_info) == STB_GLOBAL) && in ld_sym_enter() 657 usdp->sd_sym->st_info = in sym_add_spec() 705 sym->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in sym_add_spec() 753 sdp->sd_sym->st_info = ELF_ST_INFO(bind, STT_OBJECT); in sym_add_spec() 1288 type = ELF_ST_TYPE(sym->st_info); in ld_sym_validate() 1330 (ELF_ST_BIND(sym->st_info) != STB_WEAK)) { in ld_sym_validate() 1385 ((ELF_ST_BIND(sym->st_info) != STB_WEAK) && in ld_sym_validate() 1683 (ELF_ST_BIND(sdp->sd_sym->st_info) == STB_LOCAL)) in ld_sym_validate() 1823 bind1 = ELF_ST_BIND(sym1->st_info); in compare() [all …]
|
H A D | libs.c | 148 (ELF_ST_TYPE(syms->st_info) == STT_FUNC)) in process_member() 157 if ((ELF_ST_BIND(syms->st_info) == STB_WEAK) && in process_member() 158 (ELF_ST_BIND(osym->st_info) != STB_WEAK)) in process_member() 170 if (ELF_ST_TYPE(syms->st_info) != in process_member() 171 ELF_ST_TYPE(osym->st_info)) in process_member() 567 ((ELF_ST_BIND(sym->st_info) == STB_WEAK) && in ar_extract_bysym()
|
H A D | update.c | 342 sym->st_info = ELF_ST_INFO(STB_LOCAL, STT_FILE); in update_osym() 356 sym->st_info = ELF_ST_INFO(STB_LOCAL, STT_FILE); in update_osym() 405 sym->st_info = ELF_ST_INFO(STB_LOCAL, STT_SECTION); in update_osym() 485 (ELF_ST_BIND(rsdp->sd_sym->st_info) != STB_LOCAL)) in update_osym() 662 if ((type = ELF_ST_TYPE(sym->st_info)) == STT_SECTION) in update_osym() 1065 } else if (ELF_ST_TYPE(symptr->st_info) != STT_TLS && in update_osym() 1076 } else if (ELF_ST_TYPE(symptr->st_info) == STT_TLS && in update_osym() 1116 type = ELF_ST_TYPE(symptr->st_info); in update_osym() 1122 symptr->st_info = ELF_ST_INFO(bind, type); in update_osym() 1238 ELF_ST_TYPE(sdp->sd_sym->st_info)]) { in update_osym() [all...] |
/titanic_51/usr/src/cmd/dis/ |
H A D | dis_target.c | 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) in sym_compare() [all...] |
/titanic_51/usr/src/cmd/sgs/gprof/common/ |
H A D | readelf.c | 415 if (GELF_ST_TYPE(sym->st_info) == STT_FUNC) { in is_function() 416 if (GELF_ST_BIND(sym->st_info) == STB_GLOBAL) in is_function() 419 if (GELF_ST_BIND(sym->st_info) == STB_WEAK) in is_function() 422 if (!aflag && GELF_ST_BIND(sym->st_info) == STB_LOCAL) in is_function() 429 if (GELF_ST_TYPE(sym->st_info) != STT_NOTYPE) in is_function() 436 if (GELF_ST_BIND(sym->st_info) != STB_GLOBAL && in is_function() 437 GELF_ST_BIND(sym->st_info) != STB_WEAK && in is_function() 438 (GELF_ST_BIND(sym->st_info) != STB_LOCAL || aflag)) in is_function() 562 l_npe->syminfo = gsym.st_info; in get_symtab() 569 GELF_ST_BIND(gsym.st_info) in get_symtab() [all...] |
/titanic_51/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 277 (ELF_ST_BIND(s[j].st_info) != STB_LOCAL && in __fex_sym() 278 ELF_ST_BIND(s[j].st_info) != STB_GLOBAL && in __fex_sym() 279 ELF_ST_BIND(s[j].st_info) != STB_WEAK) || in __fex_sym() 280 (ELF_ST_TYPE(s[j].st_info) != STT_NOTYPE && in __fex_sym() 281 ELF_ST_TYPE(s[j].st_info) != STT_OBJECT && in __fex_sym() 282 ELF_ST_TYPE(s[j].st_info) != STT_FUNC)) in __fex_sym()
|
/titanic_51/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | sym.c | 53 SYM_CMD_T_ST_INFO = 2, /* sym:st_info */ 320 if (ELF_ST_BIND(sym1->st_info) != in all_same() 321 ELF_ST_BIND(sym2->st_info)) in all_same() 326 if (sym1->st_info != sym2->st_info) in all_same() 388 if (ELF_ST_TYPE(sym1->st_info) != in all_same() 389 ELF_ST_TYPE(sym2->st_info)) in all_same() 399 if (ELF_ST_VISIBILITY(sym1->st_info) != in all_same() 400 ELF_ST_VISIBILITY(sym2->st_info)) in all_same() 448 value = ELF_ST_BIND(sym->st_info); in print_symstate() 1253 uchar_t st_info = symstate_cmd_body() local [all...] |
H A D | sym.msg | 95 @ MSG_DESC_ST_INFO "st_info (binding and type)" 146 @ MSG_A2_DESC_ST_INFO "Integer value to set for symbol st_info field.\n\ 147 Note that the fact that the value of st_info affects both\n\ 211 st_info field of an ELF symbol.\n\ 225 The sym:st_info command is used to display or alter the\n\ 226 st_info field of the specified symbol. It provides raw access\n\ 227 to the entire st_info value. Normally, the sym:st_bind or sym:st_type\n\ 228 commands are used in preference to sym:st_info.\n\ 233 If sym:st_info is called without arguments, the value of st_info\ [all...] |
/titanic_51/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 862 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in gelf32_sym_compare() 863 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in gelf32_sym_compare() 864 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in gelf32_sym_compare() 866 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in gelf32_sym_compare() 867 (ELF32_ST_BIND(rhs->st_info) == STB_WEAK)) in gelf32_sym_compare() 868 return (ELF32_ST_BIND(lhs->st_info) == STB_WEAK ? 1 : -1); in gelf32_sym_compare() 890 if ((ELF64_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in gelf64_sym_compare() 891 (ELF64_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in gelf64_sym_compare() 892 return (ELF64_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in gelf64_sym_compare() 894 if ((ELF64_ST_BIND(lhs->st_info) in gelf64_sym_compare() [all...] |
H A D | mdb_nm.c | 251 if (GELF_ST_TYPE(niip->nii_symp->st_info) == STT_FUNC) in nm_print_ctype() 300 if (!((1 << GELF_ST_TYPE(sym->st_info)) & niip->nii_types)) in nm_print() 311 MDB_TBL_PRNT, NM_FMT_TYPE, "%-5s", nm_type2str(sym->st_info), in nm_print() 312 MDB_TBL_PRNT, NM_FMT_BIND, "%-5s", nm_bind2str(sym->st_info), in nm_print() 351 switch (GELF_ST_TYPE(sym->st_info)) { in nm_asgn() 838 sym.st_info = GELF_ST_INFO(STB_GLOBAL, STT_NOTYPE); in cmd_nmadd() 842 sym.st_info = GELF_ST_INFO(STB_GLOBAL, STT_FUNC); in cmd_nmadd() 844 sym.st_info = GELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in cmd_nmadd()
|
H A D | mdb_pservice.c | 195 symp->st_info = ELF32_ST_INFO( in ps_pglobal_sym() 196 GELF_ST_BIND(sym.st_info), GELF_ST_TYPE(sym.st_info)); in ps_pglobal_sym()
|
/titanic_51/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 82 uchar_t type = ELF32_ST_TYPE(sym->st_info); in dt_module_syminit32() 91 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_syminit32() 115 uchar_t type = ELF64_ST_TYPE(sym->st_info); in dt_module_syminit64() 124 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_syminit64() 150 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in dt_module_symcomp32() 151 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in dt_module_symcomp32() 152 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in dt_module_symcomp32() 154 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp32() 155 (ELF32_ST_BIND(rhs->st_info) == STB_WEAK)) in dt_module_symcomp32() 156 return (ELF32_ST_BIND(lhs->st_info) in dt_module_symcomp32() [all...] |
/titanic_51/usr/src/tools/ctf/cvt/ |
H A D | output.c | 245 if (GELF_ST_BIND(weak->st_info) != STB_WEAK) in check_for_weak() 255 type = GELF_ST_TYPE(sym.st_info); in check_for_weak() 260 if (GELF_ST_TYPE(weak->st_info) != type || in check_for_weak() 267 if (GELF_ST_BIND(sym.st_info) == STB_WEAK) in check_for_weak() 273 if (GELF_ST_BIND(sym.st_info) == STB_LOCAL && in check_for_weak() 307 uchar_t type = GELF_ST_TYPE(sym->st_info); in copy_from_strong() 368 match.iim_bind = GELF_ST_BIND(sym.st_info); in sort_iidescs() 370 switch (GELF_ST_TYPE(sym.st_info)) { in sort_iidescs() 406 smatch.iim_bind = GELF_ST_BIND(ssym.st_info); in sort_iidescs()
|
/titanic_51/usr/src/cmd/mdb/tools/findfp/common/ |
H A D | findsym.c | 61 if ((GELF_ST_TYPE(sym.st_info) != STT_FUNC && in findelfsym() 62 GELF_ST_TYPE(sym.st_info) != STT_OBJECT) || in findelfsym()
|
/titanic_51/usr/src/common/ctf/ |
H A D | ctf_lookup.c | 192 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 196 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 255 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info() 259 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
|
/titanic_51/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | syms.c | 100 int t1 = GELF_ST_TYPE(s1->st_info); in sym_swap() 101 int t2 = GELF_ST_TYPE(s2->st_info); in sym_swap() 167 if ((GELF_ST_BIND(sym.st_info) == STB_LOCAL) && in addr_map_sym()
|
/titanic_51/usr/src/cmd/abi/appcert/static_prof/ |
H A D | static_prof.c | 929 stbind = ELF64_ST_BIND(symtab_entry->st_info); in scan_archive_symbols() 931 stbind = ELF32_ST_BIND(symtab_entry->st_info); in scan_archive_symbols() 939 sttype = ELF64_ST_TYPE(symtab_entry->st_info); in scan_archive_symbols() 941 sttype = ELF32_ST_TYPE(symtab_entry->st_info); in scan_archive_symbols() 1016 stbind = ELF64_ST_BIND(symtab_entry->st_info); in scan_symbols() 1018 stbind = ELF32_ST_BIND(symtab_entry->st_info); in scan_symbols() 1026 sttype = ELF64_ST_TYPE(symtab_entry->st_info); in scan_symbols() 1028 sttype = ELF32_ST_TYPE(symtab_entry->st_info); in scan_symbols() 1092 stbind = ELF64_ST_BIND(symtab_entry->st_info); in bind_symbols() 1094 stbind = ELF32_ST_BIND(symtab_entry->st_info); in bind_symbols() [all...] |
/titanic_51/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | vfs.c | 754 if (sotpi_sonode->st_info.sti_laddr_valid == 1) { in tpi_sock_print() 756 mdb_alloc(sotpi_sonode->st_info.sti_laddr_len, UM_SLEEP); in tpi_sock_print() 757 if (mdb_vread(laddr, sotpi_sonode->st_info.sti_laddr_len, in tpi_sock_print() 758 (uintptr_t)sotpi_sonode->st_info.sti_laddr_sa) == -1) { in tpi_sock_print() 767 if (sotpi_sonode->st_info.sti_faddr_valid == 1) { in tpi_sock_print() 769 mdb_alloc(sotpi_sonode->st_info.sti_faddr_len, UM_SLEEP); in tpi_sock_print() 770 if (mdb_vread(faddr, sotpi_sonode->st_info.sti_faddr_len, in tpi_sock_print() 771 (uintptr_t)sotpi_sonode->st_info.sti_faddr_sa) == -1) { in tpi_sock_print() 1062 if (mdb_vread(&(sotpi_sonode.st_info), in pfile_callback()
|
/titanic_51/usr/src/cmd/sgs/rtld/sparc/ |
H A D | common_sparc.c | 68 if ((ELF_ST_BIND(sym1->st_info) == STB_LOCAL) || in check_regsyms() 69 (ELF_ST_BIND(sym2->st_info) == STB_LOCAL)) { in check_regsyms()
|
/titanic_51/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 450 secsymtabent->st_info = ELF_ST_INFO(STB_LOCAL, STT_NOTYPE); in output() 475 secsymtabent->st_info = ELF_ST_INFO(STB_LOCAL, STT_SECTION); in output() 506 glbsymtabent->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in output() 526 glbsymtabent->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in output()
|