/illumos-gate/usr/src/tools/ctf/common/ |
H A D | symbol.c | 35 ignore_symbol(GElf_Sym *sym, const char *name) argument 37 uchar_t type = GELF_ST_TYPE(sym->st_info); 43 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0) 58 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS && 59 sym->st_value == 0)
|
/illumos-gate/usr/src/lib/libpp/common/ |
H A D | ppmacref.c | 31 ppmacref(struct ppsymbol* sym, char* file, int line, int type, unsigned long sum) argument 39 p += sfsprintf(p, MAXTOKEN, "\n#%s %s:%s %s %d", dirname(PRAGMA), pp.pass, keyname(X_MACREF), sym->name, type); 42 if (sym->macro && sym->macro->value) 43 sum = strsum(sym->macro->value, (long)sym->macro->arity);
|
H A D | ppbuiltin.c | 52 struct ppsymbol* sym; local 119 if ((c = pplex()) != T_ID || !(sym = ppsymref(pp.symtab, pp.token)) || !sym->macro || sym->macro->arity != 1 || (c = pplex()) != ',') 139 STRCOPY(pp.token, sym->name, a); 246 p = (sym = pprefmac(a, REF_NORMAL)) ? sym->macro->value : "";
|
H A D | ppmisc.c | 37 register struct ppsymbol* sym; local 39 if (!(sym = ppsymget(pp.symtab, name)) && (ref <= REF_NORMAL && pp.macref || ref == REF_CREATE || ref == REF_DELETE && (pp.mode & (INIT|READONLY)))) 43 sym = ppsymset(pp.symtab, NiL); 45 if (sym && ref <= REF_NORMAL) 47 if (pp.macref) (*pp.macref)(sym, error_info.file, error_info.line, ref == REF_NORMAL && (pp.state & CONDITIONAL) ? REF_IF : ref, 0L); 48 if (!sym->macro) sym = 0; 53 if (ref == REF_IF && sym && (sym->flags & SYM_PREDEFINED) && *name != '_' && !(pp.mode & (HOSTED|INACTIVE))) 62 return(sym); 74 register struct ppsymbol* sym; local [all...] |
H A D | ppcall.c | 36 * 0 returned if tok==0 and sym->mac->value to be copied to output by caller 41 ppcall(register struct ppsymbol* sym, int tok) argument 62 sym->flags |= SYM_NOTICED; 63 if (mac = sym->macro) 66 if ((sym->flags & SYM_PREDICATE) && (pp.state & (CONDITIONAL|WARN)) == (CONDITIONAL|WARN)) 67 error(1, "%s: macro definition overrides assertion: use #%s ...", sym->name, sym->name); 68 if (sym->flags & SYM_DISABLED) 76 error(1, "%s: macro recursion inhibited", sym->name); 80 if ((sym [all...] |
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/pcplusmp/ |
H A D | pcplusmp.c | 113 GElf_Sym sym; local 115 if (mdb_lookup_by_name("gld_intr", &sym) != -1) 116 if (GELF_ST_TYPE(sym.st_info) == STT_FUNC) 117 gld_intr_addr = (uintptr_t)sym.st_value;
|
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/ |
H A D | findsym.c | 56 GElf_Sym sym; local 58 if (gelf_getsym(symtab, i, &sym) == NULL) 61 if ((GELF_ST_TYPE(sym.st_info) != STT_FUNC && 62 GELF_ST_TYPE(sym.st_info) != STT_OBJECT) || 63 sym.st_shndx == SHN_UNDEF) 66 if (addr - sym.st_value < sym.st_size) { 69 sym.st_name)) == NULL) 70 elfdie("failed to get name for sym %d", i); 71 *offp = addr - sym [all...] |
/illumos-gate/usr/src/uts/intel/ia32/krtld/ |
H A D | doreloc.c | 187 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, argument 197 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, 202 #define sym (* rel_desc_sname_func)(rdesc) macro 262 REL_ERR_UNSUPSZ(lml, file, sym, rtype, rep->re_fsize); 268 #undef sym macro
|
/illumos-gate/usr/src/cmd/mdb/common/modules/logindmux/ |
H A D | logindmux.c | 104 GElf_Sym sym; local 106 if (mdb_lookup_by_obj("logindmux", "logdmuxuwinit", &sym) == 0) 107 mdb_qops_install(&logdmux_uqops, (uintptr_t)sym.st_value); 108 if (mdb_lookup_by_obj("logindmux", "logdmuxlwinit", &sym) == 0) 109 mdb_qops_install(&logdmux_lqops, (uintptr_t)sym.st_value); 117 GElf_Sym sym; local 119 if (mdb_lookup_by_obj("logindmux", "logdmuxuwinit", &sym) == 0) 120 mdb_qops_remove(&logdmux_uqops, (uintptr_t)sym.st_value); 121 if (mdb_lookup_by_obj("logindmux", "logdmuxlwinit", &sym) == 0) 122 mdb_qops_remove(&logdmux_lqops, (uintptr_t)sym [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/sockfs/ |
H A D | sockfs.c | 41 GElf_Sym sym; local 43 if (mdb_lookup_by_name(symname, &sym)) { 49 sym.st_value) != 0) {
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/apix/ |
H A D | apix.c | 167 GElf_Sym sym; local 169 if (mdb_lookup_by_name("gld_intr", &sym) != -1) 170 if (GELF_ST_TYPE(sym.st_info) == STT_FUNC) 171 gld_intr_addr = (uintptr_t)sym.st_value;
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/uppc/ |
H A D | uppc.c | 174 GElf_Sym sym; local 176 if (mdb_lookup_by_name("gld_intr", &sym) != -1) 177 if (GELF_ST_TYPE(sym.st_info) == STT_FUNC) 178 gld_intr_addr = (uintptr_t)sym.st_value;
|
/illumos-gate/usr/src/cmd/sgs/libelf/misc/ |
H A D | nlist.c | 68 GElf_Sym sym; /* buffer storing one symbol information */ local 97 (void) gelf_getsym(symdata, (int)ii, &sym); 98 name = elf_strptr(elfdes, strtab, (size_t)sym.st_name); 104 p->n_value = (long)sym.st_value; 105 p->n_type = GELF_ST_TYPE(sym.st_info); 106 p->n_scnum = sym.st_shndx;
|
/illumos-gate/usr/src/cmd/boot/symdef/ |
H A D | symdef.c | 67 GElf_Sym sym; local 103 &sym, &shndx) != NULL) && 105 sym.st_name)) == 0)) {
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | utils.c | 21 char *sym; local 22 sym = gensym("ssu"); 24 fputs(sym, output_file); 31 fputs(sym, output_file);
|
/illumos-gate/usr/src/uts/intel/amd64/krtld/ |
H A D | doreloc.c | 189 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, argument 199 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, 204 #define sym (* rel_desc_sname_func)(rdesc) macro 262 REL_ERR_NOFIT(lml, file, sym, rtype, *value); 278 REL_ERR_NOFIT(lml, file, sym, rtype, *value); 329 REL_ERR_UNSUPSZ(lml, file, sym, rtype, rep->re_fsize); 335 #undef sym macro
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | netstack.c | 36 GElf_Sym sym; local 39 if (mdb_lookup_by_name("netstack_head", &sym) == -1) { 43 addr = (uintptr_t)sym.st_value;
|
H A D | contract.c | 40 GElf_Sym sym; local 41 if (mdb_lookup_by_name("contract_avl", &sym)) { 45 wsp->walk_addr = sym.st_value;
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/ |
H A D | misc.c | 59 GElf_Sym sym; local 62 if (mdb_lookup_by_obj(UMEM_OBJNAME, "umem_alloc", &sym) == 0) 64 else if (mdb_lookup_by_obj(MDB_OBJ_EXEC, "umem_alloc", &sym) == 0) 79 umem_lookup_by_name(const char *name, GElf_Sym *sym) argument 82 UMEM_OBJNAME), name, sym)); 89 GElf_Sym sym; local 91 if (umem_lookup_by_name(name, &sym)) 94 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value) 95 == sym 102 is_umem_sym(const char *sym, const char *prefix) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dlink_audit.c | 105 GElf_Sym sym; local 117 ret = Plookup_by_name(P, name, "___SUNW_dof", &sym); 121 dtrace_link_dof((void *)(uintptr_t)sym.st_value,
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nss_deffinder.c | 69 void *sym; local 78 if ((sym = dlsym(dlhandle, name)) == 0) { 82 res = (nss_backend_constr_t)sym;
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_synd.c | 263 mcamd_cksym_decode(struct mcamd_hdl *hdl, uint_t sym, int *lowbitp, argument 266 if (sym <= 0xf || sym >= 0x10 && sym <= 0x1f) { 269 *lowbitp = sym * 4; 270 *hibitp = (sym + 1) * 4 - 1; 271 } else if (sym >= 0x20 && sym <= 0x23) { 274 *lowbitp = (sym - 0x20) * 4; 275 *hibitp = (sym [all...] |
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | events.c | 55 GElf_Sym sym; local 111 offender_addr, &sym, &dts) == 0) { 155 offender_addr, &sym, &dts) == 0) { 194 offender_addr, &sym, &dts) == 0) {
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_dl.c | 102 GElf_Sym sym; local 105 if (mdb_gelf_symtab_lookup_by_name(kmc->kmc_symtab, name, &sym, 109 return ((void *)(uintptr_t)sym.st_value);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_pservice.c | 160 GElf_Sym sym; local 165 if (mdb_tgt_lookup_by_name(t, object, name, &sym, NULL) == 0) { 166 *symp = (psaddr_t)sym.st_value; 186 GElf_Sym sym; local 191 if (mdb_tgt_lookup_by_name(t, object, name, &sym, NULL) == 0) { 192 symp->st_name = (Elf32_Word)sym.st_name; 193 symp->st_value = (Elf32_Addr)sym.st_value; 194 symp->st_size = (Elf32_Word)sym.st_size; 196 GELF_ST_BIND(sym.st_info), GELF_ST_TYPE(sym [all...] |