/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 | 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) == STB_GLOBAL) in reloc_exec() [all …]
|
H A D | syms.c | 125 if ((name == 0) && (ELF_ST_BIND(sym->st_info) != STB_LOCAL)) { in string() 336 if (ELF_ST_BIND(sdp->sd_sym->st_info) != STB_LOCAL) in is_gcc_localalias() 563 (ELF_ST_BIND(nsym->st_info) == STB_GLOBAL) && in ld_sym_enter() 695 usdp->sd_sym->st_info = in sym_add_spec() 744 sym->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in sym_add_spec() 792 sdp->sd_sym->st_info = ELF_ST_INFO(bind, STT_OBJECT); in sym_add_spec() 970 bsdp->sd_sym->st_info = ELF_ST_INFO(STB_GLOBAL, STT_NOTYPE); in sym_add_bounds() 1424 type = ELF_ST_TYPE(sym->st_info); in ld_sym_validate() 1466 (ELF_ST_BIND(sym->st_info) != STB_WEAK)) { in ld_sym_validate() 1521 ((ELF_ST_BIND(sym->st_info) != STB_WEAK) && in ld_sym_validate() [all …]
|
H A D | update.c | 348 sym->st_info = ELF_ST_INFO(STB_LOCAL, STT_FILE); in update_osym() 362 sym->st_info = ELF_ST_INFO(STB_LOCAL, STT_FILE); in update_osym() 411 sym->st_info = ELF_ST_INFO(STB_LOCAL, STT_SECTION); in update_osym() 491 (ELF_ST_BIND(rsdp->sd_sym->st_info) != STB_LOCAL)) in update_osym() 668 if ((type = ELF_ST_TYPE(sym->st_info)) == STT_SECTION) in update_osym() 1073 } else if (ELF_ST_TYPE(symptr->st_info) != STT_TLS && in update_osym() 1084 } else if (ELF_ST_TYPE(symptr->st_info) == STT_TLS && in update_osym() 1124 type = ELF_ST_TYPE(symptr->st_info); in update_osym() 1130 symptr->st_info = ELF_ST_INFO(bind, type); in update_osym() 1133 #define IS_DATA_SYMBOL(x) ((ELF_ST_TYPE(x->st_info) == STT_OBJECT) || \ in update_osym() [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 | 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() 465 EC_WORD(sym->st_info)); in print_symstate() 531 value = ELF_ST_TYPE(sym->st_info); in print_symstate() [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\n\ 236 If both arguments are present, the st_info field of the symbol at\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 | 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) == STB_WEAK) != in gelf64_sym_compare() [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 | 81 uchar_t type = ELF32_ST_TYPE(sym->st_info); in dt_module_syminit32() 90 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_syminit32() 114 uchar_t type = ELF64_ST_TYPE(sym->st_info); in dt_module_syminit64() 123 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_syminit64() 149 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in dt_module_symcomp32() 150 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in dt_module_symcomp32() 151 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in dt_module_symcomp32() 153 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp32() 154 (ELF32_ST_BIND(rhs->st_info) == STB_WEAK)) in dt_module_symcomp32() 155 return (ELF32_ST_BIND(lhs->st_info) == STB_WEAK ? 1 : -1); in dt_module_symcomp32() [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/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/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/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()
|