Home
last modified time | relevance | path

Searched refs:symtab (Results 1 – 25 of 65) sorted by relevance

123

/illumos-gate/usr/src/cmd/mdb/common/modules/libproc/
H A Dlibproc.c49 sym_tbl_t symtab; in pr_symtab() local
86 if (symtab.sym_count == 0) { in pr_symtab()
102 symtab.sym_data_pri); in pr_symtab()
105 if ((symtab.sym_symn_aux > 0) && in pr_symtab()
109 symtab.sym_data_aux); in pr_symtab()
116 (uintptr_t)symtab.sym_byname; in pr_symtab()
124 count = symtab.sym_count; in pr_symtab()
126 count = symtab.sym_symn; in pr_symtab()
139 if (idx >= symtab.sym_symn_aux) { in pr_symtab()
141 idx -= symtab.sym_symn_aux; in pr_symtab()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c65 if (symtab->symt_shndx == sh_link) in get_symtab()
66 return (symtab); in get_symtab()
139 elfedit_symtab_t *symtab; in elfedit64_init_obj_state() local
280 symtab = get_symtab(obj_state, _cache); in elfedit64_init_obj_state()
281 symtab->symt_xshndx = ndx; in elfedit64_init_obj_state()
285 symtab = get_symtab(obj_state, _cache); in elfedit64_init_obj_state()
286 symtab->symt_syminfo = ndx; in elfedit64_init_obj_state()
291 symtab->symt_versym = ndx; in elfedit64_init_obj_state()
300 symtab = obj_state->os_symtab; in elfedit64_init_obj_state()
309 if (symtab->symt_xshndx != SHN_UNDEF) { in elfedit64_init_obj_state()
[all …]
H A Dutil_machelf.c574 elfedit_symtab_t *symtab; in elfedit_sec_getsymtab() local
586 symtab = obj_state->os_symtab; in elfedit_sec_getsymtab()
611 *aux_info = symtab; in elfedit_sec_getsymtab()
647 elfedit_symtab_t *symtab; in elfedit_sec_getxshndx() local
653 symtab = obj_state->os_symtab; in elfedit_sec_getxshndx()
655 if (symsec->sec_shndx == symtab->symt_shndx) in elfedit_sec_getxshndx()
665 (symtab->symt_xshndx == SHN_UNDEF)) in elfedit_sec_getxshndx()
710 elfedit_symtab_t *symtab; in elfedit_sec_getversym() local
716 symtab = obj_state->os_symtab; in elfedit_sec_getversym()
718 if (symsec->sec_shndx == symtab->symt_shndx) in elfedit_sec_getversym()
[all …]
/illumos-gate/usr/src/cmd/awk/
H A Dtran.c66 Array *symtab; /* main symbol table */ variable
129 NUM|STR|CON|DONTFREE, symtab); in syminit()
143 STR|DONTFREE, symtab)->sval; in syminit()
145 nfloc = setsymtab("NF", "", 0.0, NUM, symtab); in syminit()
147 nrloc = setsymtab("NR", "", 0.0, NUM, symtab); in syminit()
149 fnrloc = setsymtab("FNR", "", 0.0, NUM, symtab); in syminit()
153 rstartloc = setsymtab("RSTART", "", 0.0, NUM, symtab); in syminit()
157 symtabloc = setsymtab("SYMTAB", "", 0.0, ARR, symtab); in syminit()
158 symtabloc->sval = (char *)symtab; in syminit()
169 cp = setsymtab("ARGV", "", 0.0, ARR, symtab); in arginit()
[all …]
H A Dlex.c198 buf, tostring(buf), atof(buf), CON|NUM, symtab); in yylex()
359 buf, "", 0.0, STR|NUM, symtab); in yylex()
480 yylval.cp = setsymtab(buf, s, 0.0, CON|STR|DONTFREE, symtab); in string()
528 yylval.cp = setsymtab("NF", "", 0.0, NUM, symtab); in word()
539 yylval.cp = setsymtab(w, "", 0.0, STR|NUM|DONTFREE, symtab); in word()
/illumos-gate/usr/src/cmd/oawk/
H A Dtran.c38 CELL *symtab[MAXSYM]; /* symbol table pointers */ variable
76 setsymtab(L_0, tostring(L_0), 0.0, NUM|STR|CON|FLD, symtab); in syminit()
78 setsymtab(L_zeronull, tostring(L_NULL), 0.0, NUM|STR|CON|FLD, symtab); in syminit()
79 recloc = setsymtab(L_record, record, 0.0, STR|FLD, symtab); in syminit()
81 recloc, lookup(L_record, symtab, 0), NULL); in syminit()
82 FS = &setsymtab(L_FS, tostring(L_space), 0.0, STR|FLD, symtab)->sval; in syminit()
86 symtab)->sval; in syminit()
88 symtab)->sval; in syminit()
89 FILENAME = &setsymtab(L_FILENAME, NULL, 0.0, STR|FLD, symtab)->sval; in syminit()
90 nfloc = setsymtab(L_NF, NULL, 0.0, NUM, symtab); in syminit()
[all …]
H A Dawk.g.y121 valtonode(lookup(L_zeronull, symtab, 0), CCON));
164 valtonode(lookup(L_record, symtab, 0), CFLD));
168 valtonode(lookup(L_record, symtab, 0), CFLD));
230 valtonode(lookup(L_record, symtab, 0), CFLD), makedfa($1));
242 $$ = valtonode(lookup(L_record, symtab, 0), CFLD);
H A Dawk.lx.l110 yylval = (int)lookup(L_record, symtab, 0);
119 yylval = (int)setsymtab(yytext, NULL, 0.0, NUM, symtab);
123 CON|NUM, symtab); RETURN(NUMBER); }
152 symtab);
190 yylval = (int)setsymtab(cbuf, s, 0.0, CON|STR, symtab);
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab.c1498 if (symtab == NULL || symtab->sym_data_pri == NULL || in optimize_symtab()
1502 symn = symtab->sym_symn; in optimize_symtab()
1503 strsz = symtab->sym_strsz; in optimize_symtab()
1529 symtab->sym_count = count; in optimize_symtab()
1535 symtab->sym_count = 0; in optimize_symtab()
2581 if (symtab->sym_data_pri == NULL || symtab->sym_count == 0) in sym_by_addr_binary()
3174 sym_tbl_t *symtab; in Psymbol_iter_com() local
3209 symn = symtab->sym_symn; in Psymbol_iter_com()
3210 strs = symtab->sym_strs; in Psymbol_iter_com()
3211 strsz = symtab->sym_strsz; in Psymbol_iter_com()
[all …]
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c40 Elf_Data *symtab; in findelfsym() local
50 (symtab = elf_getdata(scn, NULL)) == NULL) in findelfsym()
58 if (gelf_getsym(symtab, i, &sym) == NULL) in findelfsym()
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dsyms.c40 symtab_getsym(sym_tbl_t *symtab, int ndx, GElf_Sym *dst) in symtab_getsym() argument
43 if (ndx >= symtab->st_symn_aux) { in symtab_getsym()
44 return (gelf_getsym(symtab->st_syms_pri, in symtab_getsym()
45 ndx - symtab->st_symn_aux, dst)); in symtab_getsym()
49 return (gelf_getsym(symtab->st_syms_aux, ndx, dst)); in symtab_getsym()
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppop.c490 if (!pp.symtab) in ppop()
510 if (key = ppkeyset(pp.symtab, s)) in ppop()
797 if (!pp.symtab) in ppop()
1078 pp.reset.symtab = pp.symtab; in ppop()
1079 pp.symtab = 0; in ppop()
1087 if (pp.symtab) in ppop()
1090 hashfree(pp.symtab); in ppop()
1093 hashview(pp.symtab, pp.reset.symtab); in ppop()
1415 key = ppkeyset(pp.symtab, NiL); in ppop()
1422 key = ppkeyset(pp.symtab, NiL); in ppop()
[all …]
H A Dppmisc.c39 …if (!(sym = ppsymget(pp.symtab, name)) && (ref <= REF_NORMAL && pp.macref || ref == REF_CREATE || … in pprefmac()
43 sym = ppsymset(pp.symtab, NiL); in pprefmac()
109 if (sym = ppsymref(pp.symtab, pred)) in ppassert()
122 if (sym = ppsymset(pp.symtab, pred)) in ppassert()
H A Dppcontext.c52 if (op->symtab) hashfree(op->symtab); in ppcontext()
/illumos-gate/usr/src/cmd/lockstat/
H A Dsym.c141 Sym *symtab, *symp, *lastsym; in symtab_init() local
158 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
169 lastsym = symtab + nsyms; in symtab_init()
171 for (symp = symtab; symp < lastsym; symp++) in symtab_init()
/illumos-gate/usr/src/test/elf-tests/tests/resolution/mixed-hidden-comdat/
H A Dmixed-hidden-comdat.sh39 elfdump -sN.symtab libtest.so | awk '$9 ~ /(bss|data)_symbol/ {
50 elfdump -sN.symtab libothertest.so | awk '$9 ~ /(bss|data)_symbol/ {
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_elf_access.c126 struct Dwarf_Section_s *symtab; member
849 Dwarf_Small *symtab_section = obj->symtab->dss_data; in loop_through_relocations()
850 Dwarf_Unsigned symtab_section_entrysize = obj->symtab->dss_entrysize; in loop_through_relocations()
851 Dwarf_Unsigned symtab_section_size = obj->symtab->dss_size; in loop_through_relocations()
944 if (!obj->symtab) { in dwarf_elf_object_relocate_a_section()
945 obj->symtab = &dbg->de_elf_symtab; in dwarf_elf_object_relocate_a_section()
948 if (obj->symtab->dss_index != relocatablesec->dss_reloc_link) { in dwarf_elf_object_relocate_a_section()
953 if (obj->strtab->dss_index != obj->symtab->dss_link) { in dwarf_elf_object_relocate_a_section()
958 if (!obj->symtab->dss_data) { in dwarf_elf_object_relocate_a_section()
961 obj->symtab->dss_index, in dwarf_elf_object_relocate_a_section()
[all …]
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c213 int i, shstrtab, strtab, symtab; in objfs_data_init() local
228 symtab = i; in objfs_data_init()
247 sect->sect_link = symtab; in objfs_data_init()
512 Elf64_Sym sym, *symtab; in read_symtab() local
514 Elf32_Sym sym, *symtab; in read_symtab()
519 symtab = addr; in read_symtab()
530 sym = symtab[index]; in read_symtab()
547 sym = symtab[index]; in read_symtab()
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1651 Shdr *symtab = NULL, *strtab; in process_scns() local
1669 symtab = (Shdr *)(shbase + in process_scns()
1696 if (symtab == NULL) { in process_scns()
1698 } else if (symtab->sh_type == in process_scns()
1717 if (symtab != NULL && in process_scns()
1725 symtab != 0) in process_scns()
1728 symtab = shdr; in process_scns()
1784 if (symtab != NULL) { in process_scns()
1787 symtab->sh_link == 0 || in process_scns()
1798 sz = MAX(symtab->sh_size, in process_scns()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dsym.c1048 elfedit_symtab_t *symtab; in process_args() local
1139 symtab = obj_state->os_symtab; in process_args()
1142 tblndx++, symtab++) { in process_args()
1152 if (symtab->symt_shndx != index) in process_args()
1161 &symstate->sym.n, &symtab); in process_args()
1162 symstate->versym.shndx = symtab->symt_versym; in process_args()
1163 symstate->xshndx.shndx = symtab->symt_xshndx; in process_args()
1473 elfedit_symtab_t *symtab; in cpl_sh_opt() local
1500 symtab = obj_state->os_symtab; in cpl_sh_opt()
1502 tblndx++, symtab++) { in cpl_sh_opt()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/
H A Dasm10k.c158 static sym_t symtab[MAX_SYMBOLS]; variable
273 if (strcmp(symtab[i].name, name) == 0) { in find_symbol()
274 return (&symtab[i]); in find_symbol()
300 sym = &symtab[nsyms++]; in add_symbol()
826 symtab[i].arg, symtab[i].type, symtab[i].name); in produce_map()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dlibelf.msg55 @ EFMT_ARSYM "Format error: archive symtab truncated"
56 @ EFMT_ARSYMSTR "Format error: archive symtab strings"
57 @ EFMT_ARSYMSZ "Format error: archive symtab size"
91 @ EMEM_ARSYM "Memory allocation error: archive symtab"
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dupdate.c247 symtab[symtab_ndx++] = _sym; in update_osym()
341 if (symtab) { in update_osym()
343 sym = &symtab[symtab_ndx++]; in update_osym()
415 if (symtab) { in update_osym()
610 if (symtab) { in update_osym()
708 enter_in_symtab = symtab && in update_osym()
721 symtab[symtab_ndx] = *sym; in update_osym()
897 symtab[symtab_ndx] = *sym; in update_osym()
1244 if (symtab) in update_osym()
1631 &symtab[symtab_ndx]; in update_osym()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c221 Sym *symtab, *secsymtabent, *glbsymtabent; in output() local
416 symtab = (Sym *)outsec->os_data->d_buf; in output()
447 secsymtabent = symtab; in output()
546 outsymtab->os_shdr->sh_info = (secsymtabent - symtab); in output()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_module.c194 Elf32_Sym *symtab = (Elf32_Sym *)dmp->dm_symtab.cts_data; in dt_module_symsort32() local
200 Elf32_Sym *sym = symtab + dsp->ds_symid; in dt_module_symsort32()
224 Elf64_Sym *sym = symtab + dsp->ds_symid; in dt_module_symsort64()
267 const Elf32_Sym *symtab = dmp->dm_symtab.cts_data; in dt_module_symname32() local
281 sym = symtab + dsp->ds_symid; in dt_module_symname32()
297 const Elf64_Sym *symtab = dmp->dm_symtab.cts_data; in dt_module_symname64() local
311 sym = symtab + dsp->ds_symid; in dt_module_symname64()
328 const Elf32_Sym *symtab = dmp->dm_symtab.cts_data; in dt_module_symaddr32() local
358 *idp = (uint_t)(sym - symtab); in dt_module_symaddr32()
370 const Elf64_Sym *symtab = dmp->dm_symtab.cts_data; in dt_module_symaddr64() local
[all …]

123