/illumos-gate/usr/src/cmd/mdb/common/modules/ipp/ |
H A D | ipp.c | 436 GElf_Sym sym; in ippops() local 452 MDB_SYM_EXACT, buf, MDB_SYM_NAMLEN, &sym) == 0) in ippops() 459 MDB_SYM_EXACT, buf, MDB_SYM_NAMLEN, &sym) == 0) in ippops() 466 MDB_SYM_EXACT, buf, MDB_SYM_NAMLEN, &sym) == 0) in ippops() 473 MDB_SYM_EXACT, buf, MDB_SYM_NAMLEN, &sym) == 0) in ippops() 480 MDB_SYM_EXACT, buf, MDB_SYM_NAMLEN, &sym) == 0) in ippops() 715 GElf_Sym sym; in _mdb_init() local 717 if (mdb_lookup_by_name("ipp_action_byid", &sym) == -1) { in _mdb_init() 722 ipp_action_byid = (uintptr_t)sym.st_value; in _mdb_init() 724 if (mdb_lookup_by_name("ipp_mod_byid", &sym) == -1) { in _mdb_init() [all …]
|
/illumos-gate/usr/src/cmd/sgs/pvs/common/ |
H A D | pvs.c | 409 GElf_Sym sym; in gvers_syms() local 433 (GELF_ST_TYPE(sym.st_info) == STT_TLS)) in gvers_syms() 434 size = (size_t)sym.st_size; in gvers_syms() 440 if (!vflag && (sym.st_shndx == SHN_ABS) && in gvers_syms() 478 GElf_Sym sym; in sym_local() local 489 (void) gelf_getsym(csym->c_data, 1, &sym); in sym_local() 490 if (GELF_ST_TYPE(sym.st_info) != STT_FILE) { in sym_local() 505 if (GELF_ST_TYPE(sym.st_info) == STT_SECTION) in sym_local() 507 if (GELF_ST_TYPE(sym.st_info) == STT_FILE) in sym_local() 515 if (GELF_ST_BIND(sym.st_info) != STB_LOCAL) in sym_local() [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | elf.c | 1326 Sym *sym, *symtabptr; local 1357 sym = symtabptr + ndx; 1409 srp->sr_sym = sym; 1419 srp->sr_sym = sym; 1440 srp->sr_sym = sym; 2463 Sym *sym, *_sym = NULL; local 2491 sym = SYMTAB(lmp); 2500 sym = SUNWSYMTAB(lmp); 2565 for (_value = 0, sym++, ndx = 1; ndx < cnt; ndx++, sym++) { 2587 _sym = sym; [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/idm/ |
H A D | idm.c | 246 GElf_Sym sym; in iscsi_tgt() local 310 GElf_Sym sym; in iscsi_tpg() local 359 GElf_Sym sym; in iscsi_tpgt() local 539 GElf_Sym sym; in iscsi_svc() local 588 GElf_Sym sym; in iscsi_portal() local 792 GElf_Sym sym; in iscsi_walk_all_sess() local 844 GElf_Sym sym; in iscsi_walk_all_conn() local 1695 GElf_Sym sym; in iscsi_conn_impl() local 2974 GElf_Sym sym; in iscsi_isns_portals() local 3063 GElf_Sym sym; in iscsi_isns_targets() local [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | groups.c | 170 Sym *sym; in ld_group_process() local 200 sym = (Sym *)isc->is_indata->d_buf; in ld_group_process() 211 sym += gshdr->sh_info; in ld_group_process() 217 str += sym->st_name; in ld_group_process() 230 gnu_stt_section = ((sym->st_name == 0) || (*str == '\0')) && in ld_group_process() 231 (ELF_ST_TYPE(sym->st_info) == STT_SECTION); in ld_group_process()
|
/illumos-gate/usr/src/cmd/demangle/ |
H A D | demangle.c | 182 do_demangle(const char *sym, sysdem_lang_t lang, FILE *out) in do_demangle() argument 184 char *demangled = sysdemangle(sym, lang, NULL); in do_demangle() 187 warn(_("error while demangling '%s'"), sym); in do_demangle() 191 if (fprintf(out, "%s", (demangled != NULL) ? demangled : sym) < 0) in do_demangle()
|
/illumos-gate/usr/src/uts/intel/ia32/krtld/ |
H A D | doreloc.c | 220 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_ld() 226 #define sym (* rel_desc_sname_func)(rdesc) in do_reloc_ld() macro 286 REL_ERR_UNSUPSZ(lml, file, sym, rtype, rep->re_fsize); in do_reloc_ld() 292 #undef sym in do_reloc_ld()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_rcm.c | 259 void *sym; in ap_rcm_init() local 319 if ((sym = dlsym(lib, *op)) == NULL) { in ap_rcm_init() 350 (rcm_info_tuple_t *))sym; in ap_rcm_init() 354 (rcm_info_tuple_t *))sym; in ap_rcm_init() 358 (rcm_info_tuple_t *))sym; in ap_rcm_init() 363 rcm_info_t **))sym; in ap_rcm_init() 368 rcm_info_t **))sym; in ap_rcm_init() 378 rcm_info_t **))sym; in ap_rcm_init() 383 rcm_info_t **))sym; in ap_rcm_init() 388 nvlist_t *, rcm_info_t **))sym; in ap_rcm_init() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dlink_audit.c | 105 GElf_Sym sym; in la_activity() local 117 ret = Plookup_by_name(P, name, "___SUNW_dof", &sym); in la_activity() 121 dtrace_link_dof((void *)(uintptr_t)sym.st_value, in la_activity()
|
/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | fbt.c | 198 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in fbt_provide_module() local 201 if (ELF_ST_TYPE(sym->st_info) != STT_FUNC) in fbt_provide_module() 209 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in fbt_provide_module() 212 name = str + sym->st_name; in fbt_provide_module() 276 instr = (uint8_t *)sym->st_value; in fbt_provide_module() 277 limit = (uint8_t *)(sym->st_value + sym->st_size); in fbt_provide_module() 353 if (check < sym->st_value) in fbt_provide_module() 361 if (ptr >= (uint8_t *)sym->st_value && ptr < limit) { in fbt_provide_module() 389 (uintptr_t)(instr - (uint8_t *)sym->st_value); in fbt_provide_module()
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 289 GElf_Sym sym; in print_rela() local 394 GElf_Sym sym; in print_rel() local 465 (void) printf("%-20d", sym.st_name); in print_rel() 523 GElf_Sym sym; in print_symtab() local 543 if ((sym.st_shndx == SHN_XINDEX) && in print_symtab() 574 shndx = sym.st_shndx; in print_symtab() 575 if ((sym.st_shndx == SHN_UNDEF) || in print_symtab() 576 (sym.st_shndx >= SHN_LORESERVE)) in print_symtab() 595 EC_ADDR(sym.st_value)); in print_symtab() 624 if (sym.st_name == 0) in print_symtab() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_expects_err_ptr.c | 29 set_state(my_id, sm->name, sm->sym, &ok); in set_ok() 32 static void match_function_def(struct symbol *sym) in match_function_def() argument 36 func_sym = sym; in match_function_def()
|
H A D | smatch_fresh_alloc.c | 74 state = get_state(SMATCH_EXTRA, cur->name, cur->sym); in pre_merge_hook() 76 set_state(my_id, cur->name, cur->sym, &undefined); in pre_merge_hook() 99 bool is_fresh_alloc_var_sym(const char *var, struct symbol *sym) in is_fresh_alloc_var_sym() argument 101 return get_state(my_id, var, sym) == &fresh; in is_fresh_alloc_var_sym()
|
H A D | check_arm64_tagged.c | 47 static void match_endfunc(struct symbol *sym) in match_endfunc() argument 56 struct symbol *sym; in expr_has_untagged_symbol() local 61 name = expr_to_var_sym(expr, &sym); in expr_has_untagged_symbol() 62 if (!name || !sym) in expr_has_untagged_symbol()
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | elf32.h | 151 #define ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type)) argument 178 #define ELF32_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size)) argument
|
H A D | elf64.h | 160 #define ELF64_R_INFO(sym, type) (((sym) << 32) + ((type) & 0xffffffffL)) argument 185 #define ELF64_M_INFO(sym, size) (((sym)<<8)+(unsigned char)(size)) argument
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 798 Elf64_Sym sym; in ctf_symtab_iter() local 812 sym.st_name = symp->st_name; in ctf_symtab_iter() 813 sym.st_value = symp->st_value; in ctf_symtab_iter() 814 sym.st_size = symp->st_size; in ctf_symtab_iter() 817 sym.st_info = ELF64_ST_INFO(bind, itype); in ctf_symtab_iter() 818 sym.st_other = symp->st_other; in ctf_symtab_iter() 819 sym.st_shndx = symp->st_shndx; in ctf_symtab_iter() 823 sym = *symp; in ctf_symtab_iter() 826 type = ELF64_ST_TYPE(sym.st_info); in ctf_symtab_iter() 844 if (!ctf_sym_valid(strbase, type, sym.st_shndx, sym.st_value, in ctf_symtab_iter() [all …]
|
H A D | ctf_elfwrite.c | 246 GElf_Sym sym; in ctf_write_elf() local 249 (void) gelf_getsym(ddata, i, &sym); in ctf_write_elf() 251 if (sym.st_shndx >= SHN_LORESERVE) in ctf_write_elf() 254 if ((newscn = secxlate[sym.st_shndx]) != in ctf_write_elf() 255 sym.st_shndx) { in ctf_write_elf() 256 sym.st_shndx = in ctf_write_elf() 259 if (gelf_update_sym(ddata, i, &sym) == in ctf_write_elf()
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_dl.c | 100 GElf_Sym sym; in dl_findsym() local 103 if (mdb_gelf_symtab_lookup_by_name(kmc->kmc_symtab, name, &sym, in dl_findsym() 107 return ((void *)(uintptr_t)sym.st_value); in dl_findsym()
|
/illumos-gate/usr/src/cmd/boot/symdef/ |
H A D | symdef.c | 65 GElf_Sym sym; in main() local 101 &sym, &shndx) != NULL) && in main() 103 sym.st_name)) == 0)) { in main()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/sockfs/ |
H A D | sockfs.c | 43 GElf_Sym sym; in sockparams_walk_list() local 45 if (mdb_lookup_by_name(symname, &sym)) { in sockparams_walk_list() 51 sym.st_value) != 0) { in sockparams_walk_list()
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | who.c | 199 Elf_Sym *sym, *_sym; in print_address() local 219 sym = op->o_syms; in print_address() 224 (_sym->st_value > sym->st_value)) in print_address() 225 sym = _sym; in print_address() 228 sym->st_name + op->o_strs, in print_address() 229 (ulong_t)((uintptr_t)pc - (uintptr_t)sym->st_value)); in print_address()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | zone.c | 146 void *sym = (void *)(-1); in zone_get_id() local 149 (sym = dlsym(dlhandle, "zone_get_id")) == NULL) { in zone_get_id() 150 sym = (void *)(-1); in zone_get_id() 153 real_zone_get_id = (zone_get_id_t)sym; in zone_get_id()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | sobj.c | 96 GElf_Sym sym; in sobj_text_to_ops() local 102 &sym) == -1) { in sobj_text_to_ops() 107 *sobj_ops_out = (uintptr_t)sym.st_value; in sobj_text_to_ops() 706 GElf_Sym sym; in sobj2ts() local 716 if (mdb_lookup_by_name("upimutextab", &sym) == -1) { in sobj2ts() 720 isupi = addr - (uintptr_t)sym.st_value < sym.st_size; in sobj2ts() 723 if (mdb_lookup_by_name("turnstile_table", &sym) == -1) { in sobj2ts() 727 ttable = (uintptr_t)sym.st_value + sizeof (turnstile_chain_t) * ttoff; in sobj2ts()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppbuiltin.c | 52 struct ppsymbol* sym; in ppbuiltin() local 119 …if ((c = pplex()) != T_ID || !(sym = ppsymref(pp.symtab, pp.token)) || !sym->macro || sym->macro->… in ppbuiltin() 139 STRCOPY(pp.token, sym->name, a); in ppbuiltin() 246 p = (sym = pprefmac(a, REF_NORMAL)) ? sym->macro->value : ""; in ppbuiltin()
|