/illumos-gate/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 | 272 uchar_t ntype = ELF_ST_TYPE(nsym->st_info); in sym_typecheck() 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() 556 uchar_t obind = ELF_ST_BIND(osym->st_info); in sym_tworeals() 557 uchar_t ntype = ELF_ST_TYPE(nsym->st_info); in sym_tworeals() 558 uchar_t nbind = ELF_ST_BIND(nsym->st_info); in sym_tworeals() 657 uchar_t otype = ELF_ST_TYPE(osym->st_info); in sym_realtent() [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() 293 ttype = ELF_ST_TYPE(tsym->st_info); in disp_scansyms() 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() 1125 if (ELF_ST_BIND(sym->st_info) == STB_GLOBAL) in reloc_exec() 1555 if (ELF_ST_BIND(sdp->sd_sym->st_info) == STB_LOCAL) { in ld_process_sym_reloc() 1620 if ((ELF_ST_TYPE(sdp->sd_sym->st_info) == STT_TLS) && in ld_process_sym_reloc() 1675 (ELF_ST_TYPE(sdp->sd_sym->st_info) == STT_NOTYPE)) in ld_process_sym_reloc() [all …]
|
H A D | syms.c | 695 usdp->sd_sym->st_info = in sym_add_spec() 1424 type = ELF_ST_TYPE(sym->st_info); in ld_sym_validate() 1960 bind1 = ELF_ST_BIND(sym1->st_info); in compare() 1961 bind2 = ELF_ST_BIND(sym2->st_info); in compare() 2619 bind = ELF_ST_BIND(nsym->st_info); in ld_sym_process() 2736 ntype = ELF_ST_TYPE(nsym->st_info); in ld_sym_process() 2881 ELF_ST_TYPE(tsym->st_info))) { in ld_sym_process() 3057 uchar_t bind1 = ELF_ST_BIND(sym1->st_info); in ld_sym_process() 3077 ELF_ST_BIND(sym2->st_info); in ld_sym_process() 3158 csym->st_info = ELF_ST_INFO(STB_LOCAL, in ld_sym_process() [all …]
|
H A D | update.c | 1124 type = ELF_ST_TYPE(symptr->st_info); in update_osym() 1720 type = ELF_ST_TYPE(sym-> st_info); in update_osym() 1752 if ((ELF_ST_TYPE(sym->st_info) == in update_osym() 1866 ELF_ST_TYPE(sym->st_info)); in update_osym() 1880 symtab[_symndx].st_info = sym->st_info; in update_osym() 1974 sym->st_info = ELF_ST_INFO(bind, in update_osym() 1975 ELF_ST_TYPE(sym->st_info)); in update_osym() 1983 sym->st_info = ELF_ST_INFO(bind, in update_osym() 1984 ELF_ST_TYPE(sym->st_info)); in update_osym() 3218 if (ELF_ST_TYPE(sym->st_info) != in update_move() [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() 568 ((ELF_ST_BIND(sym->st_info) == STB_WEAK) && in ar_extract_bysym()
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_target.c | 172 if (GELF_ST_TYPE(syma->se_sym.st_info) != in sym_compare() 173 GELF_ST_TYPE(symb->se_sym.st_info)) { in sym_compare() 174 if (GELF_ST_TYPE(syma->se_sym.st_info) == STT_FUNC) in sym_compare() 176 if (GELF_ST_TYPE(symb->se_sym.st_info) == STT_FUNC) in sym_compare() 188 if (GELF_ST_BIND(syma->se_sym.st_info) != in sym_compare() 189 GELF_ST_BIND(symb->se_sym.st_info)) { in sym_compare() 190 if (GELF_ST_BIND(syma->se_sym.st_info) == STB_WEAK) in sym_compare() 192 if (GELF_ST_BIND(symb->se_sym.st_info) == STB_WEAK) in sym_compare() 195 if (GELF_ST_BIND(syma->se_sym.st_info) == STB_GLOBAL) in sym_compare() 197 if (GELF_ST_BIND(symb->se_sym.st_info) == STB_GLOBAL) in sym_compare() [all …]
|
/illumos-gate/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) == STB_LOCAL) { in get_symtab()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | sym.c | 321 ELF_ST_BIND(sym2->st_info)) in all_same() 326 if (sym1->st_info != sym2->st_info) in all_same() 389 ELF_ST_TYPE(sym2->st_info)) in all_same() 465 EC_WORD(sym->st_info)); in print_symstate() 699 type = ELF_ST_TYPE(sym->st_info); in cmd_body_set_st_bind() 950 bind = ELF_ST_BIND(sym->st_info); in cmd_body_set_st_type() 1253 uchar_t st_info = in symstate_cmd_body() local 1256 if (sym->st_info == st_info) { in symstate_cmd_body() 1263 EC_WORD(sym->st_info)); in symstate_cmd_body() 1271 EC_WORD(sym->st_info), EC_WORD(st_info)); in symstate_cmd_body() [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\ 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\n\ 236 If both arguments are present, the st_info field of the symbol at\n\ 317 st_type portion of the st_info field of the specified\n\ [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 863 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) 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() 895 (ELF64_ST_BIND(rhs->st_info) == STB_WEAK)) in gelf64_sym_compare() 955 uchar_t type = ELF32_ST_TYPE(sym->st_info); in gelf32_symtab_init() 1052 uchar_t type = ELF64_ST_TYPE(sym->st_info); in gelf64_symtab_init() 1435 dst->st_info = src->st_info; in gelf32_to_sym() 1689 if (GELF_ST_TYPE(sym->st_info) != STT_FILE) in mdb_gelf_symtab_lookup_by_file() 1704 GELF_ST_TYPE(sym->st_info) == STT_FILE || in mdb_gelf_symtab_lookup_by_file() 1705 GELF_ST_BIND(sym->st_info) != STB_LOCAL) in mdb_gelf_symtab_lookup_by_file() [all …]
|
H A D | mdb_nm.c | 255 if (GELF_ST_TYPE(niip->nii_symp->st_info) == STT_FUNC) in nm_print_ctype() 304 if (!((1 << GELF_ST_TYPE(sym->st_info)) & niip->nii_types)) in nm_print() 315 MDB_TBL_PRNT, NM_FMT_TYPE, "%-5s", nm_type2str(sym->st_info), in nm_print() 316 MDB_TBL_PRNT, NM_FMT_BIND, "%-5s", nm_bind2str(sym->st_info), in nm_print() 355 switch (GELF_ST_TYPE(sym->st_info)) { in nm_asgn() 842 sym.st_info = GELF_ST_INFO(STB_GLOBAL, STT_NOTYPE); in cmd_nmadd() 846 sym.st_info = GELF_ST_INFO(STB_GLOBAL, STT_FUNC); in cmd_nmadd() 848 sym.st_info = GELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in cmd_nmadd()
|
H A D | mdb_pservice.c | 192 symp->st_info = ELF32_ST_INFO( in ps_pglobal_sym() 193 GELF_ST_BIND(sym.st_info), GELF_ST_TYPE(sym.st_info)); in ps_pglobal_sym()
|
/illumos-gate/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() 115 uchar_t type = ELF64_ST_TYPE(sym->st_info); 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() 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() 180 (ELF64_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in dt_module_symcomp64() 183 if ((ELF64_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp64() 184 (ELF64_ST_BIND(rhs->st_info) == STB_WEAK)) in dt_module_symcomp64() 244 dst->st_info = src->st_info; in dt_module_symgelf32() [all …]
|
H A D | dt_link.c | 237 sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_FUNC); in prepare_elf32() 254 sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_OBJECT); in prepare_elf32() 409 sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_FUNC); in prepare_elf64() 426 sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in prepare_elf64() 724 if (GELF_ST_TYPE(sym->st_info) == STT_FUNC && in dt_symtab_lookup() 728 if (GELF_ST_BIND(sym->st_info) == STB_GLOBAL) in dt_symtab_lookup() 1205 if (GELF_ST_BIND(fsym.st_info) != STB_LOCAL) in process_obj() 1219 if (GELF_ST_TYPE(fsym.st_info) != STT_FUNC) { in process_obj() 1365 assert(GELF_ST_TYPE(fsym.st_info) == STT_FUNC); in process_obj() 1379 if (GELF_ST_BIND(fsym.st_info) == STB_LOCAL) { in process_obj() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_lookup.c | 195 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 199 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 258 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info() 262 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dw_elfstructs.h | 178 unsigned char st_info[1]; member 185 unsigned char st_info[1]; member
|
H A D | dwarf_elfstructs.h | 186 unsigned char st_info[1]; member 193 unsigned char st_info[1]; member
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 449 secsymtabent->st_info = ELF_ST_INFO(STB_LOCAL, STT_NOTYPE); in output() 474 secsymtabent->st_info = ELF_ST_INFO(STB_LOCAL, STT_SECTION); in output() 505 glbsymtabent->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in output() 525 glbsymtabent->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in output()
|