Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/titanic_41/usr/src/uts/common/krtld/
H A Dreloc.h242 #define REL_ERR_UNIMPL(lml, file, sym, rtype) \ argument
244 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
247 #define REL_ERR_UNSUPSZ(lml, file, sym, rtype, size) \ argument
250 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
253 #define REL_ERR_NONALIGN(lml, file, sym, rtype, off) \ argument
256 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
259 #define REL_ERR_UNNOBITS(lml, file, sym, rtype, nbits) \ argument
262 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
265 #define REL_ERR_LOSEBITS(lml, file, sym, rtype, uvalue, nbits, off) \ argument
268 _kobj_printf(ops, MSG_REL_SYM, ((sym) ? (sym) : MSG_STR_UNKNOWN)); \
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/libumem/
H A Dmisc.c61 GElf_Sym sym; in umem_set_standalone() local
64 if (mdb_lookup_by_obj(UMEM_OBJNAME, "umem_alloc", &sym) == 0) in umem_set_standalone()
66 else if (mdb_lookup_by_obj(MDB_OBJ_EXEC, "umem_alloc", &sym) == 0) in umem_set_standalone()
81 umem_lookup_by_name(const char *name, GElf_Sym *sym) in umem_lookup_by_name() argument
84 UMEM_OBJNAME), name, sym)); in umem_lookup_by_name()
91 GElf_Sym sym; in umem_readvar() local
93 if (umem_lookup_by_name(name, &sym)) in umem_readvar()
96 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value) in umem_readvar()
97 == sym.st_size) in umem_readvar()
98 return ((ssize_t)sym.st_size); in umem_readvar()
[all …]
/titanic_41/usr/src/cmd/dis/
H A Ddis_target.c245 sym_entry_t *sym; in construct_symtab() local
284 for (i = 0, sym = p_symtab; i < tgt->dt_symcount; i++) { in construct_symtab()
285 if (gelf_getsym(symdata, i, &(sym->se_sym)) == NULL) { in construct_symtab()
295 if (!IS_DATA_TYPE(GELF_ST_TYPE(sym->se_sym.st_info))) { in construct_symtab()
300 if (sym->se_sym.st_shndx == SHN_XINDEX && symshndx != NULL) { in construct_symtab()
304 sym->se_shndx = -1; in construct_symtab()
306 sym->se_shndx = symshndx[i]; in construct_symtab()
309 sym->se_shndx = sym->se_sym.st_shndx; in construct_symtab()
313 if (sym->se_shndx == SHN_ABS) { in construct_symtab()
320 if (sym->se_sym.st_value == 0) { in construct_symtab()
[all …]
/titanic_41/usr/src/cmd/sgs/elfedit/modules/common/
H A Dsym.c155 } sym; member
210 symstate->sym.sec->sec_shdr->sh_link, 0); in symstate_add_str()
219 symstate->sym.sec, &symstate->versym.data, &symstate->versym.n); in symstate_add_versym()
228 symstate->sym.sec, &symstate->xshndx.data, &symstate->xshndx.n); in symstate_add_xshndx()
250 Sym *sym; in dump_symtab() local
257 symsec = symstate->sym.sec; in dump_symtab()
258 sym = symstate->sym.data + ndx; in dump_symtab()
273 for (; cnt-- > 0; ndx++, sym++) { in dump_symtab()
278 symname = elfedit_offset_to_str(strsec, sym->st_name, in dump_symtab()
280 shndx = sym->st_shndx; in dump_symtab()
[all …]
/titanic_41/usr/src/cmd/sgs/elfedit/common/
H A Delfconst.c253 elfedit_atoui_sym_t *sym = &fill_state->desc[fill_state->cur++]; in libconv_fill_cb() local
255 sym->sym_name = str; in libconv_fill_cb()
256 sym->sym_value = value; in libconv_fill_cb()
266 libconv_fill_iter(sym_table_ent_t *sym, conv_iter_osabi_t osabi, Half mach, in libconv_fill_iter() argument
269 switch (sym->ste_type) { in libconv_fill_iter()
271 (void) (* sym->ste_conv_func.simple)( in libconv_fill_iter()
273 (void) (* sym->ste_conv_func.simple)( in libconv_fill_iter()
278 (void) (* sym->ste_conv_func.osabi)(osabi, in libconv_fill_iter()
280 (void) (* sym->ste_conv_func.osabi)(osabi, in libconv_fill_iter()
285 (void) (* sym->ste_conv_func.mach)(mach, in libconv_fill_iter()
[all …]
H A Dutil.c87 elfedit_atoi_value_to_str(const elfedit_atoi_sym_t *sym, elfedit_atoi_t value, in elfedit_atoi_value_to_str() argument
90 for (; sym->sym_name != NULL; sym++) in elfedit_atoi_value_to_str()
91 if (value == sym->sym_value) in elfedit_atoi_value_to_str()
92 return (sym->sym_name); in elfedit_atoi_value_to_str()
100 elfedit_atoui_value_to_str(const elfedit_atoui_sym_t *sym, in elfedit_atoui_value_to_str() argument
103 for (; sym->sym_name != NULL; sym++) in elfedit_atoui_value_to_str()
104 if (value == sym->sym_value) in elfedit_atoui_value_to_str()
105 return (sym->sym_name); in elfedit_atoui_value_to_str()
134 atoi_sym_process(const char *str, const elfedit_atoi_sym_t *sym, in atoi_sym_process() argument
149 for (; sym->sym_name != NULL; sym++) { in atoi_sym_process()
[all …]
/titanic_41/usr/src/lib/libm/common/C/
H A Dlibm.h54 #define LIBM_ANSI_PRAGMA_WEAK(sym,stype) \ argument
55 .weak __/**/sym; \
56 .type __/**/sym,#stype; \
57 __/**/sym = sym
84 #define PIC_SET(via,sym,dst) ldx [%via+sym],%dst argument
86 #define PIC_SET(via,sym,dst) ld [%via+sym],%dst argument
95 #define PIC_SET(via,sym,dst) setx sym,%g1,%dst argument
97 #define PIC_SET(via,sym,dst) set sym,%dst argument
153 #define LIBM_ANSI_PRAGMA_WEAK(sym,stype) \ argument
154 .weak __/**/sym; \
[all …]
/titanic_41/usr/src/lib/libpp/common/
H A Dppcall.c41 ppcall(register struct ppsymbol* sym, int tok) in ppcall() argument
62 sym->flags |= SYM_NOTICED; in ppcall()
63 if (mac = sym->macro) in ppcall()
66 if ((sym->flags & SYM_PREDICATE) && (pp.state & (CONDITIONAL|WARN)) == (CONDITIONAL|WARN)) in ppcall()
67 error(1, "%s: macro definition overrides assertion: use #%s ...", sym->name, sym->name); in ppcall()
68 if (sym->flags & SYM_DISABLED) in ppcall()
76 error(1, "%s: macro recursion inhibited", sym->name); in ppcall()
80 if ((sym->flags & SYM_PREDEFINED) && !(pp.mode & (HOSTED|INACTIVE))) in ppcall()
83 if (*sym->name != '_' && !(pp.state & COMPATIBILITY)) in ppcall()
85 if (*sym->name != '_') in ppcall()
[all …]
H A Dppcontrol.c60 register struct ppsymbol* sym; in assert() local
95 if (sym = ppsymref(pp.symtab, pred)) in assert()
96 sym->flags &= ~SYM_PREDICATE; in assert()
108 if (sym = ppsymset(pp.symtab, pred)) in assert()
109 sym->flags |= SYM_PREDICATE; in assert()
162 register struct ppsymbol* sym; in macsym() local
169 sym = pprefmac(pp.token, REF_CREATE); in macsym()
170 if ((sym->flags & SYM_FINAL) && (pp.mode & HOSTED)) return 0; in macsym()
171 if (sym->flags & (SYM_ACTIVE|SYM_READONLY)) in macsym()
174 error(2, "%s: macro is %s", sym->name, (sym->flags & SYM_READONLY) ? "readonly" : "active"); in macsym()
[all …]
H A Dppmisc.c37 register struct ppsymbol* sym; in pprefmac() local
39 …if (!(sym = ppsymget(pp.symtab, name)) && (ref <= REF_NORMAL && pp.macref || ref == REF_CREATE || … in pprefmac()
43 sym = ppsymset(pp.symtab, NiL); in pprefmac()
45 if (sym && ref <= REF_NORMAL) in pprefmac()
47 …if (pp.macref) (*pp.macref)(sym, error_info.file, error_info.line, ref == REF_NORMAL && (pp.state … in pprefmac()
48 if (!sym->macro) sym = 0; in pprefmac()
53 …if (ref == REF_IF && sym && (sym->flags & SYM_PREDEFINED) && *name != '_' && !(pp.mode & (HOSTED|I… in pprefmac()
62 return(sym); in pprefmac()
74 register struct ppsymbol* sym; in ppassert() local
109 if (sym = ppsymref(pp.symtab, pred)) in ppassert()
[all …]
/titanic_41/usr/src/uts/common/zmod/
H A Dinftrees.c43 unsigned sym; /* index of code symbols */ local
111 for (sym = 0; sym < codes; sym++)
112 count[lens[sym]]++;
148 for (sym = 0; sym < codes; sym++)
149 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
204 sym = 0; /* starting code symbol */
221 if ((int)(work[sym]) < end) {
223 this.val = work[sym];
225 else if ((int)(work[sym]) > end) {
226 this.op = (unsigned char)(extra[work[sym]]);
[all …]
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_nm.c295 nm_print(void *data, const GElf_Sym *sym, const char *name, in nm_print() argument
300 if (!((1 << GELF_ST_TYPE(sym->st_info)) & niip->nii_types)) in nm_print()
304 niip->nii_symp = sym; in nm_print()
309 MDB_TBL_PRNT, NM_FMT_VALUE, niip->nii_pfmt, sym->st_value, in nm_print()
310 MDB_TBL_PRNT, NM_FMT_SIZE, niip->nii_pfmt, sym->st_size, 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()
313 MDB_TBL_PRNT, NM_FMT_OTHER, niip->nii_ofmt, sym->st_other, in nm_print()
314 MDB_TBL_PRNT, NM_FMT_SHNDX, "%-8s", nm_sect2str(sym->st_shndx), in nm_print()
327 nm_any(void *data, const GElf_Sym *sym, const char *name, in nm_any() argument
[all …]
/titanic_41/usr/src/cmd/sgs/librtld_db/demo/common/
H A Dsyms.c69 GElf_Sym sym; in str_map_sym() local
71 if (symtab_getsym(symp, i, &sym) == NULL) { in str_map_sym()
76 if (sym.st_name == 0) in str_map_sym()
78 if ((sym.st_shndx == SHN_UNDEF) || in str_map_sym()
79 (strcmp(strs + sym.st_name, symname) != 0)) in str_map_sym()
81 *symptr = sym; in str_map_sym()
127 GElf_Sym sym; in addr_map_sym() local
152 if (symtab_getsym(symp, i, &sym) == NULL) { in addr_map_sym()
156 if ((sym.st_name == 0) || (sym.st_shndx == SHN_UNDEF)) in addr_map_sym()
159 svalue = (ulong_t)sym.st_value; in addr_map_sym()
[all …]
/titanic_41/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c56 GElf_Sym sym; in findelfsym() local
58 if (gelf_getsym(symtab, i, &sym) == NULL) in findelfsym()
61 if ((GELF_ST_TYPE(sym.st_info) != STT_FUNC && in findelfsym()
62 GELF_ST_TYPE(sym.st_info) != STT_OBJECT) || in findelfsym()
63 sym.st_shndx == SHN_UNDEF) in findelfsym()
66 if (addr - sym.st_value < sym.st_size) { in findelfsym()
69 sym.st_name)) == NULL) in findelfsym()
71 *offp = addr - sym.st_value; in findelfsym()
/titanic_41/usr/src/common/mc/mc-amd/
H A Dmcamd_synd.c263 mcamd_cksym_decode(struct mcamd_hdl *hdl, uint_t sym, int *lowbitp, in mcamd_cksym_decode() argument
266 if (sym <= 0xf || sym >= 0x10 && sym <= 0x1f) { in mcamd_cksym_decode()
269 *lowbitp = sym * 4; in mcamd_cksym_decode()
270 *hibitp = (sym + 1) * 4 - 1; in mcamd_cksym_decode()
271 } else if (sym >= 0x20 && sym <= 0x23) { in mcamd_cksym_decode()
274 *lowbitp = (sym - 0x20) * 4; in mcamd_cksym_decode()
275 *hibitp = (sym + 1 - 0x20) * 4 - 1; in mcamd_cksym_decode()
/titanic_41/usr/src/lib/libtecla/common/
H A Dkeytab.c74 static void _kt_assign_action(KeySym *sym, KtBinder binder, KtKeyFn *keyfn,
228 Symbol *sym = _find_HashSymbol(kt->actions, action); in _kt_set_keybinding() local
229 if(!sym) { in _kt_set_keybinding()
235 keyfn = (KtKeyFn *) sym->fn; in _kt_set_keybinding()
236 data = sym->data; in _kt_set_keybinding()
346 KeySym *sym; in _kt_set_keyfn() local
366 sym = kt->table + last; in _kt_set_keyfn()
367 sym->keyseq = binary; in _kt_set_keyfn()
368 sym->nc = nc; in _kt_set_keyfn()
370 KtAction *action = sym->actions + i; in _kt_set_keyfn()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/logindmux/
H A Dlogindmux.c104 GElf_Sym sym; in _mdb_init() local
106 if (mdb_lookup_by_obj("logindmux", "logdmuxuwinit", &sym) == 0) in _mdb_init()
107 mdb_qops_install(&logdmux_uqops, (uintptr_t)sym.st_value); in _mdb_init()
108 if (mdb_lookup_by_obj("logindmux", "logdmuxlwinit", &sym) == 0) in _mdb_init()
109 mdb_qops_install(&logdmux_lqops, (uintptr_t)sym.st_value); in _mdb_init()
117 GElf_Sym sym; in _mdb_fini() local
119 if (mdb_lookup_by_obj("logindmux", "logdmuxuwinit", &sym) == 0) in _mdb_fini()
120 mdb_qops_remove(&logdmux_uqops, (uintptr_t)sym.st_value); in _mdb_fini()
121 if (mdb_lookup_by_obj("logindmux", "logdmuxlwinit", &sym) == 0) in _mdb_fini()
122 mdb_qops_remove(&logdmux_lqops, (uintptr_t)sym.st_value); in _mdb_fini()
/titanic_41/usr/src/cmd/localedef/
H A Dcharmap.c194 add_charmap_impl(char *sym, wchar_t wc, int nodups) in add_charmap_impl() argument
201 srch.name = sym; in add_charmap_impl()
216 if (sym) { in add_charmap_impl()
228 n->name = sym; in add_charmap_impl()
235 add_charmap(char *sym, int c) in add_charmap() argument
237 add_charmap_impl(sym, c, 1); in add_charmap()
241 add_charmap_undefined(char *sym) in add_charmap_undefined() argument
246 srch.name = sym; in add_charmap_undefined()
250 warn(_("undefined symbol <%s>"), sym); in add_charmap_undefined()
251 add_charmap_impl(sym, -1, 0); in add_charmap_undefined()
[all …]
/titanic_41/usr/src/cmd/abi/appcert/scripts/
H A Dsymcheck.pl298 my ($line, $area, $extent, $type, $sym, $obj);
312 ($obj, $area, $extent, $type, $sym) = split(/\|/, $line);
314 $symbols{$sym} = 1;
381 my ($to, $sym, $from, $binary, $line);
434 ($binary, $from, $to, $sym) = split(/\|/, $_, 4);
442 next if (exists($skip_symbols{$sym}));
446 push(@unbound_list, "$from|$sym");
476 push(@symbol_list, "$from|$to|$abi|$sym");
716 my ($case, $abis, $sym, $class, $count);
720 ($sym, $abis, $class) = split(/\|/, $case);
[all …]
H A Dsymprof.pl230 my ($prof, $sym);
238 $sym = $1;
244 "FUNC|$sym\n";
247 "FUNC|$sym\n";
344 my ($filter, $filtee, $from, $to, $sym);
591 ($from, $sym) = split(/\|/, $2, 2);
597 ($from, $to, $sym) = split(/\|/, $2, 3);
665 $tmp = "$object|*DIRECT*|$to|$sym";
667 $tmp = "$object|$from|$to|$sym";
669 $tmp = "$object|*REVERSE*|$from|$sym";
[all …]
/titanic_41/usr/src/tools/scripts/
H A Dinterface_cmp.pl171 my ($SymList, $sym, $ver, $obj) = @_;
175 ($sym =~ /$$ex[0]/);
251 foreach my $sym (keys %$i_symhash) {
252 if (!defined($cur_version->[3]{$sym})) {
254 $cur_version->[3]{$sym} = 'INHERIT';
339 my $sym = $1;
346 $cur_version->[3]{$sym} = 'NEW';
440 foreach my $sym (sort keys %$symhash) {
441 print "\t$symhash->{$sym}\t$sym\n";
507 foreach my $sym (sort keys %$old_symhash) {
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/demo/
H A Ddispsyms.c132 GElf_Sym sym; in print_symtab() local
144 &sym, &shndx) == NULL) { in print_symtab()
157 if ((sym.st_shndx == SHN_XINDEX) && in print_symtab()
190 &sym, &shndx) == NULL)) { in print_symtab()
212 type = GELF_ST_TYPE(sym.st_info); in print_symtab()
213 bind = GELF_ST_BIND(sym.st_info); in print_symtab()
233 if (sym.st_shndx < SHN_LORESERVE) in print_symtab()
234 shndx = sym.st_shndx; in print_symtab()
235 else if ((sym.st_shndx != SHN_XINDEX) || in print_symtab()
237 shndx = sym.st_shndx; in print_symtab()
[all …]
/titanic_41/usr/src/lib/libdhcputil/common/
H A Ddhcp_symbol.c632 dsym_close_parser(char **fields, dhcp_symbol_t *sym) in dsym_close_parser() argument
635 dsym_free_classes(&sym->ds_classes); in dsym_close_parser()
653 dhcp_symbol_t *sym) in dsym_init_parser() argument
666 sym->ds_category = 0; in dsym_init_parser()
667 sym->ds_code = 0; in dsym_init_parser()
668 (void) strlcpy(sym->ds_name, name, DSYM_MAX_SYM_LEN); in dsym_init_parser()
669 sym->ds_type = 0; in dsym_init_parser()
670 sym->ds_gran = 0; in dsym_init_parser()
671 sym->ds_max = 0; in dsym_init_parser()
672 sym->ds_classes.dc_names = NULL; in dsym_init_parser()
[all …]
/titanic_41/usr/src/tools/ctf/common/
H A Dsymbol.c35 ignore_symbol(GElf_Sym *sym, const char *name) in ignore_symbol() argument
37 uchar_t type = GELF_ST_TYPE(sym->st_info); in ignore_symbol()
43 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0) in ignore_symbol()
58 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS && in ignore_symbol()
59 sym->st_value == 0) in ignore_symbol()
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dsyms.c77 string(Ofl_desc *ofl, Ifl_desc *ifl, Sym *sym, const char *strs, size_t strsize, in string() argument
81 Word name = sym->st_name; in string()
105 sym, strs, symndx, shndx, symsecname, flags); in string()
122 if ((name == 0) && (ELF_ST_BIND(sym->st_info) != STB_LOCAL)) { in string()
236 Sym *sym; in ld_sym_nodirect() local
243 sym = (Sym *)(symdata + _cnt); in ld_sym_nodirect()
244 str = (char *)(strdata + sym->st_name); in ld_sym_nodirect()
640 Sym *sym; in sym_add_spec() local
702 if ((sym = libld_calloc(sizeof (Sym), 1)) == NULL) in sym_add_spec()
704 sym->st_shndx = SHN_ABS; in sym_add_spec()
[all …]

12345678910>>...13