/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/ |
H A D | findsym.c | 40 Elf_Data *symtab; local 45 if ((symtabidx = findelfsecidx(elf, ".symtab")) < 0) 46 elfdie("failed to find .symtab\n"); 50 (symtab = elf_getdata(scn, NULL)) == NULL) 51 elfdie("failed to read .symtab"); 58 if (gelf_getsym(symtab, i, &sym) == NULL)
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfedit_machelf.c | 59 elfedit_symtab_t *symtab = obj_state->os_symtab; local 63 for (i = 0; i < obj_state->os_symtabnum; i++, symtab++) 64 if (symtab->symt_shndx == sh_link) 65 return (symtab); 138 elfedit_symtab_t *symtab; local 278 symtab = get_symtab(obj_state, _cache); 279 symtab->symt_xshndx = ndx; 283 symtab = get_symtab(obj_state, _cache); 284 symtab->symt_syminfo = ndx; 288 symtab [all...] |
H A D | util_machelf.c | 574 elfedit_symtab_t *symtab; local 586 symtab = obj_state->os_symtab; 587 for (ndx = 0; ndx < obj_state->os_symtabnum; ndx++, symtab++) { 589 &obj_state->os_secarr[symtab->symt_shndx]; 591 if ((by_index && (symtab->symt_shndx == index)) || 611 *aux_info = symtab; 647 elfedit_symtab_t *symtab; local 653 symtab = obj_state->os_symtab; 654 for (ndx = 0; ndx < obj_state->os_symtabnum; ndx++, symtab++) 655 if (symsec->sec_shndx == symtab 710 elfedit_symtab_t *symtab; local [all...] |
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 166 * Create section descriptors for .symtab, .strtab, and .shstrtab. 221 Sym *symtab, *secsymtabent, *glbsymtabent; local 416 symtab = (Sym *)outsec->os_data->d_buf; 447 secsymtabent = symtab; 543 * Update the .symtab section header with the index of the first 546 outsymtab->os_shdr->sh_info = (secsymtabent - symtab);
|
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | syms.c | 40 symtab_getsym(sym_tbl_t *symtab, int ndx, GElf_Sym *dst) argument 42 /* If index is in range of primary symtab, look it up there */ 43 if (ndx >= symtab->st_symn_aux) { 44 return (gelf_getsym(symtab->st_syms_pri, 45 ndx - symtab->st_symn_aux, dst)); 48 /* Not in primary: Look it up in the auxiliary symtab */ 49 return (gelf_getsym(symtab->st_syms_aux, ndx, dst));
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | tran.c | 38 CELL *symtab[MAXSYM]; /* symbol table pointers */ variable 76 setsymtab(L_0, tostring(L_0), 0.0, NUM|STR|CON|FLD, symtab); 78 setsymtab(L_zeronull, tostring(L_NULL), 0.0, NUM|STR|CON|FLD, symtab); 79 recloc = setsymtab(L_record, record, 0.0, STR|FLD, symtab); 81 recloc, lookup(L_record, symtab, 0), NULL); 82 FS = &setsymtab(L_FS, tostring(L_space), 0.0, STR|FLD, symtab)->sval; 83 RS = &setsymtab(L_RS, tostring(L_newline), 0.0, STR|FLD, symtab)->sval; 84 OFS = &setsymtab(L_OFS, tostring(L_space), 0.0, STR|FLD, symtab)->sval; 86 symtab)->sval; 88 symtab) [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/libproc/ |
H A D | libproc.c | 48 sym_tbl_t symtab; local 80 if (mdb_vread(&symtab, sizeof (sym_tbl_t), addr) == -1) { 85 if (symtab.sym_count == 0) { 99 (uintptr_t)symtab.sym_data_pri) == -1) { 101 symtab.sym_data_pri); 104 if ((symtab.sym_symn_aux > 0) && 106 (uintptr_t)symtab.sym_data_aux) == -1)) { 108 symtab.sym_data_aux); 114 uintptr_t src = byaddr ? (uintptr_t)symtab.sym_byaddr : 115 (uintptr_t)symtab [all...] |
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | sym.c | 143 Sym *symtab, *symp, *lastsym; local 160 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf; 171 lastsym = symtab + nsyms; 173 for (symp = symtab; symp < lastsym; symp++)
|
/illumos-gate/usr/src/cmd/awk/ |
H A D | tran.c | 43 Array *symtab; /* main symbol table */ variable 85 symtab = makesymtab(NSYMTAB); 87 NUM|STR|CON|DONTFREE, symtab); 90 NUM|STR|CON|DONTFREE, symtab); 93 STR|DONTFREE, symtab)->sval; 95 STR|DONTFREE, symtab)->sval; 97 STR|DONTFREE, symtab)->sval; 99 STR|DONTFREE, symtab)->sval; 101 STR|DONTFREE, symtab)->sval; 103 STR|DONTFREE, symtab) [all...] |
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk0.c | 189 NODE *symtab[NBUCKET]; /* Heads of symbol table buckets */ variable
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_data.c | 52 * .symtab Symbol table 147 SECT_SYMTAB(".symtab", SHT_SYMTAB, 0), 213 int i, shstrtab, strtab, symtab; local 227 else if (strcmp(sect->sect_name, ".symtab") == 0) 228 symtab = i; 247 sect->sect_link = symtab; 248 else if (strcmp(sect->sect_name, ".symtab") == 0) 512 Elf64_Sym sym, *symtab; local 514 Elf32_Sym sym, *symtab; 519 symtab [all...] |
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | dwarf_elf_access.c | 110 /* Elf symtab and its strtab. Initialized at first 113 struct Dwarf_Section_s *symtab; member in struct:__anon4467 700 Dwarf_Small *symtab_section = obj->symtab->dss_data; 786 /* Now get the symtab. */ 787 if (!obj->symtab) { 788 obj->symtab = &dbg->de_elf_symtab; 791 if( obj->symtab->dss_index != relocatablesec->dss_reloc_link) { 796 if( obj->strtab->dss_index != obj->symtab->dss_link) { 801 if(!obj->symtab->dss_data) { 802 /* Now load the symtab */ [all...] |
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | linker.h | 280 const Elf_Sym *symtab; /* Ptr to the symbol table. */ member in struct:linker_ctf
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | load_elf.c | 56 Elf_Sym *symtab; member in struct:elf_file 581 secname = "symtab"; 682 ef->symtab = (Elf_Sym*)(uintptr_t)(dp[i].d_un.d_ptr + off); 700 if (ef->hashtab == NULL || ef->symtab == NULL || 1018 COPYOUT(ef->symtab + symnum, &sym, sizeof(sym));
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 194 Elf32_Sym *symtab = (Elf32_Sym *)dmp->dm_symtab.cts_data; local 200 Elf32_Sym *sym = symtab + dsp->ds_symid; 218 Elf64_Sym *symtab = (Elf64_Sym *)dmp->dm_symtab.cts_data; local 224 Elf64_Sym *sym = symtab + dsp->ds_symid; 267 const Elf32_Sym *symtab = dmp->dm_symtab.cts_data; local 281 sym = symtab + dsp->ds_symid; 297 const Elf64_Sym *symtab = dmp->dm_symtab.cts_data; local 311 sym = symtab + dsp->ds_symid; 328 const Elf32_Sym *symtab = dmp->dm_symtab.cts_data; local 358 *idp = (uint_t)(sym - symtab); 370 const Elf64_Sym *symtab = dmp->dm_symtab.cts_data; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_kvm.c | 38 * .symtab and .dynsym, and then also iterates over the krtld module chain in 181 * or the shdrs for .symtab and .strtab are missing, 189 warn("failed to read .symtab header for '%s', id=%d", 205 * .symtab, .strtab, and the symbol hash table in that order. 206 * So if symsize is zero, recompute it as the size of .symtab 840 * which is "prepended" to k_modlist and whose symtab is kt->k_symtab. 897 * that are "prepended" to k_modlist and whose symtab is set to 1015 mdb_gelf_symtab_t *symtab = NULL; local 1021 symtab = kt->k_symtab; 1023 symtab [all...] |
H A D | mdb_ctf.c | 1676 ctf_sect_t ctdata, symtab, strtab; local 1686 symtab.cts_name = ".symtab"; 1687 symtab.cts_type = symhdr->sh_type; 1688 symtab.cts_flags = symhdr->sh_flags; 1689 symtab.cts_data = sym_va; 1690 symtab.cts_size = symhdr->sh_size; 1691 symtab.cts_entsize = symhdr->sh_entsize; 1692 symtab.cts_offset = symhdr->sh_offset; 1702 return (ctf_bufopen(&ctdata, &symtab, [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | sym.c | 1048 elfedit_symtab_t *symtab; local 1139 symtab = obj_state->os_symtab; 1142 tblndx++, symtab++) { 1152 if (symtab->symt_shndx != index) 1155 &obj_state->os_secarr[symtab->symt_shndx], 0, NULL) == 0) { 1160 symtab->symt_shndx, NULL, &symstate->sym.data, 1161 &symstate->sym.n, &symtab); 1162 symstate->versym.shndx = symtab->symt_versym; 1163 symstate->xshndx.shndx = symtab->symt_xshndx; 1473 elfedit_symtab_t *symtab; local [all...] |
/illumos-gate/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/ |
H A D | asm10k.c | 158 static sym_t symtab[MAX_SYMBOLS]; variable 273 if (strcmp(symtab[i].name, name) == 0) { 274 return (&symtab[i]); 300 sym = &symtab[nsyms++]; 826 symtab[i].arg, symtab[i].type, symtab[i].name);
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 727 ctf_sect_t ctdata, symtab, strtab; local 772 symtab.cts_name = fptr->file_ctf_dyn ? ".dynsym" : ".symtab"; 773 symtab.cts_type = symp->sym_hdr_pri.sh_type; 774 symtab.cts_flags = symp->sym_hdr_pri.sh_flags; 775 symtab.cts_data = symp->sym_data_pri->d_buf; 776 symtab.cts_size = symp->sym_hdr_pri.sh_size; 777 symtab.cts_entsize = symp->sym_hdr_pri.sh_entsize; 778 symtab.cts_offset = symp->sym_hdr_pri.sh_offset; 788 fptr->file_ctfp = ctf_bufopen(&ctdata, &symtab, 1445 symtab_getsym(sym_tbl_t *symtab, int ndx, GElf_Sym *dst) argument 1458 optimize_symtab(sym_tbl_t *symtab) argument 2171 sym_by_addr_binary(sym_tbl_t *symtab, GElf_Addr addr, GElf_Sym *symp, uint_t *idp) argument 2240 sym_by_addr_linear(sym_tbl_t *symtab, GElf_Addr addr, GElf_Sym *symbolp, uint_t *idp) argument 2286 sym_by_addr(sym_tbl_t *symtab, GElf_Addr addr, GElf_Sym *symp, uint_t *idp) argument 2299 sym_by_name_binary(sym_tbl_t *symtab, const char *name, GElf_Sym *symp, uint_t *idp) argument 2338 sym_by_name_linear(sym_tbl_t *symtab, const char *name, GElf_Sym *symp, uint_t *idp) argument 2367 sym_by_name(sym_tbl_t *symtab, const char *name, GElf_Sym *symp, uint_t *idp) argument 2772 sym_tbl_t *symtab; local [all...] |
H A D | Pcore.c | 1388 GElf_Shdr *symtab, GElf_Shdr *strtab) 1397 if (symtab->sh_addr == 0 || 1398 (mp = Paddr2mptr(P, symtab->sh_addr)) == NULL || 1406 (long)symtab->sh_addr); 1418 size = base + symtab->sh_size + strtab->sh_size; 1435 b->shdr[1].sh_size = symtab->sh_size; 1440 b->shdr[1].sh_info = symtab->sh_info; 1441 b->shdr[1].sh_addralign = symtab->sh_addralign; 1444 symtab->sh_offset) != b->shdr[1].sh_size) { 1445 dprintf("fake_up_symtab: pread of symtab[ 1387 fake_up_symtab(struct ps_prochandle *P, const elf_file_header_t *ehdr, GElf_Shdr *symtab, GElf_Shdr *strtab) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/fdt/ |
H A D | fdt_loader_cmd.c | 121 vm_offset_t strtab, symtab, fdt_start; local 130 sym_count = symtab = strtab = 0; 151 if (shdr[i].sh_type == SHT_DYNSYM && symtab == 0) { 152 symtab = shdr[i].sh_addr + offs; 171 COPYOUT(symtab, &sym, sizeof(sym)); 172 symtab += sizeof(sym);
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf.c | 99 ".symtab", 1649 Shdr *symtab = NULL, *strtab; local 1665 symtab = (Shdr *)(shbase + 1689 if (symtab == NULL) { 1691 } else if (symtab->sh_type == 1708 * We've already dumped the symtab. 1710 if (symtab != NULL && 1711 symtab->sh_type == SHT_SYMTAB && 1718 symtab != 0) 1721 symtab [all...] |
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | sections.c | 560 * with both symtab and dynsym symbol tables. However, they 2160 * stack traces to be generated in contexts where the symtab 2223 make_dyn_shndx(Ofl_desc *ofl, const char *shname, Os_desc *symtab, argument 2231 dynsymisp = ld_os_first_isdesc(symtab);
|
H A D | update.c | 189 Sym _sym = {0}, *sym, *symtab = NULL; local 191 Word symtab_ndx = 0; /* index into .symtab */ 192 Word symtab_gbl_bndx; /* .symtab ndx 1st global */ 196 Word scopesym_bndx = 0; /* .symtab ndx 1st scoped sym */ 240 symtab = (Sym *)ofl->ofl_ossymtab->os_outdata->d_buf; 241 symtab[symtab_ndx++] = _sym; 295 * points to the relevant symtab's (.dynsym or .symtab) symbol ndx. 333 * Put output file name to the first .symtab and .SUNW_ldynsym symbol. 335 if (symtab) { 2924 Sym *symtab = symosp->os_outdata->d_buf; local [all...] |