Home
last modified time | relevance | path

Searched refs:sh_size (Results 1 – 25 of 120) sorted by relevance

12345

/titanic_51/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c496 sp->sh_size = sizeof (shstr); in fake_elf64()
503 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
517 sp->sh_size = ldynsym_size; in fake_elf64()
520 sp->sh_info = sp->sh_size / sizeof (Sym); in fake_elf64()
524 if (Pread(P, &elfdata[off], sp->sh_size, in fake_elf64()
525 sp->sh_addr) != sp->sh_size) { in fake_elf64()
530 off += sp->sh_size; in fake_elf64()
545 sp->sh_size = dynsym_size; in fake_elf64()
551 if (Pread(P, &elfdata[off], sp->sh_size, in fake_elf64()
552 sp->sh_addr) != sp->sh_size) { in fake_elf64()
[all...]
H A DPcore.c1367 size = base + symtab->sh_size + strtab->sh_size; in fake_up_symtab()
1384 b->shdr[1].sh_size = symtab->sh_size; in fake_up_symtab()
1392 if (pread64(P->asfd, &b->data[off], b->shdr[1].sh_size, in fake_up_symtab()
1393 symtab->sh_offset) != b->shdr[1].sh_size) { in fake_up_symtab()
1399 off += b->shdr[1].sh_size; in fake_up_symtab()
1402 b->shdr[2].sh_size = strtab->sh_size; in fake_up_symtab()
1408 if (pread64(P->asfd, &b->data[off], b->shdr[2].sh_size, in fake_up_symtab()
[all...]
/titanic_51/usr/src/lib/libc/port/sys/
H A Dsharefs.c57 sh->sh_size = i; in _sharefs()
60 sh->sh_size += j; in _sharefs()
64 sh->sh_size += j; in _sharefs()
68 sh->sh_size += j; in _sharefs()
72 sh->sh_size += j; in _sharefs()
/titanic_51/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c165 if (i == h.e_shnum || sh[i].sh_size == 0 || in __fex_read_syms()
169 sh[sh[i].sh_link].sh_size == 0) in __fex_read_syms()
176 size = (int) (sh[i].sh_size + sh[sh[i].sh_link].sh_size); in __fex_read_syms()
192 read(fd, stbuf, sh[i].sh_size) != sh[i].sh_size || in __fex_read_syms()
195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) != in __fex_read_syms()
196 sh[sh[i].sh_link].sh_size) in __fex_read_syms()
201 nsyms = (int) (sh[i].sh_size / s in __fex_read_syms()
[all...]
/titanic_51/usr/src/uts/common/fs/sharefs/
H A Dsharetab.c64 sh->sh_size += shl.shl_##field; /* Debug counting */
161 ASSERT(sharetab_size >= s->sh_size); in sharefs_remove()
162 sharetab_size -= s->sh_size; in sharefs_remove()
238 sh->sh_size = shl->shl_path + shl->shl_res + in sharefs_add()
241 sh->sh_size = strlen(sh->sh_path) + in sharefs_add()
250 sh->sh_size += 5; in sharefs_add()
274 ASSERT(sharetab_size >= s->sh_size); in sharefs_add()
275 sharetab_size -= s->sh_size; in sharefs_add()
276 sharetab_size += sh->sh_size; in sharefs_add()
304 sharetab_size += sh->sh_size; in sharefs_add()
[all...]
/titanic_51/usr/src/lib/libctf/common/
H A Dctf_elfwrite.c214 strdatasz = ddata->d_size + shdr.sh_size + in ctf_write_elf()
221 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in ctf_write_elf()
222 (void) strcpy((caddr_t)ddata->d_buf + shdr.sh_size, in ctf_write_elf()
224 ctfnameoff = (off_t)shdr.sh_size; in ctf_write_elf()
225 shdr.sh_size += seclen + 1; in ctf_write_elf()
233 int nsym = shdr.sh_size / shdr.sh_entsize; in ctf_write_elf()
237 symdatasz = shdr.sh_size; in ctf_write_elf()
243 (void) bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in ctf_write_elf()
276 new_offset += shdr.sh_size; in ctf_write_elf()
295 shdr.sh_size in ctf_write_elf()
[all...]
H A Dctf_lib.c372 dst->sh_size = src->sh_size; in shdr_to_gelf()
519 shnum = x32.sh_size; in ctf_fdcreate_int()
529 shnum = x64.sh_size; in ctf_fdcreate_int()
571 strs_mapsz = sp[shstrndx].sh_size + in ctf_fdcreate_int()
596 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdcreate_int()
597 lhp->sh_name >= sp[shstrndx].sh_size) in ctf_fdcreate_int()
606 ctfsect.cts_size = shp->sh_size; in ctf_fdcreate_int()
614 symsect.cts_size = shp->sh_size; in ctf_fdcreate_int()
621 strsect.cts_size = lhp->sh_size; in ctf_fdcreate_int()
[all...]
/titanic_51/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c219 if (shdr[i].sh_size == 0) in __elfN()
226 lastaddr += shdr[i].sh_size; in __elfN()
239 lastaddr += shdr[i].sh_size; in __elfN()
250 lastaddr += shdr[ef->symtabindex].sh_size; in __elfN()
261 lastaddr += shdr[symstrindex].sh_size; in __elfN()
273 lastaddr += shdr[ef->shstrindex].sh_size; in __elfN()
282 lastaddr += shdr[i].sh_size; in __elfN()
318 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) { in __elfN()
444 *stopp = shdr[i].sh_addr + shdr[i].sh_size; in __elfN()
483 shdr[shdr[i].sh_info].sh_size) in __elfN()
[all...]
H A Dload_elf.c527 chunk = shdr[ehdr->e_shstrndx].sh_size; in __elfN()
537 size = shdr[i].sh_size; in __elfN()
558 (shdr[i].sh_offset + shdr[i].sh_size <= in __elfN()
561 shdr[i].sh_size = 0; in __elfN()
565 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) in __elfN()
596 size = shdr[i].sh_size; in __elfN()
602 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, in __elfN()
603 (uintmax_t)lastaddr, (uintmax_t)(lastaddr + shdr[i].sh_size)); in __elfN()
616 result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size); in __elfN()
617 if (result < 0 || (size_t)result != shdr[i].sh_size) { in __elfN()
[all...]
/titanic_51/usr/src/tools/ctf/cvt/
H A Doutput.c349 nent = shdr.sh_size / shdr.sh_entsize; in sort_iidescs()
570 ddata->d_buf = xmalloc(ddata->d_size + shdr.sh_size + in write_file()
572 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in write_file()
573 strcpy((caddr_t)ddata->d_buf + shdr.sh_size, in write_file()
575 ctfnameoff = (off_t)shdr.sh_size; in write_file()
576 shdr.sh_size += seclen + 1; in write_file()
584 int nsym = shdr.sh_size / shdr.sh_entsize; in write_file()
588 ddata->d_buf = xmalloc(shdr.sh_size); in write_file()
589 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in write_file()
615 new_offset += shdr.sh_size; in write_file()
[all...]
/titanic_51/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c877 namesize = shp->sh_size; in init_xen_module()
878 names = kmem_zalloc(shp->sh_size, KM_SLEEP); in init_xen_module()
879 if (kobj_read_file(file, names, shp->sh_size, shp->sh_offset) < 0) in init_xen_module()
902 if ((shp->sh_size != 0) && in init_xen_module()
920 mp->data_size += ALIGN(shp->sh_size, 8); in init_xen_module()
927 mp->text_size += ALIGN(shp->sh_size, 8); in init_xen_module()
954 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize; in init_xen_module()
957 mp->symsize = mp->symhdr->sh_size + in init_xen_module()
958 mp->nsyms * sizeof (symid_t) + mp->strhdr->sh_size; in init_xen_module()
961 mp->strings = (char *)(mp->symtbl + mp->symhdr->sh_size); in init_xen_module()
[all...]
/titanic_51/usr/src/cmd/file/
H A Delf_read.c217 EI_Ehdr_shnum = EI_Shdr.sh_size; in elf_read()
439 if ((strtab = malloc(shdr->sh_size)) == NULL) in process_shdr()
442 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) in process_shdr()
443 != shdr->sh_size) in process_shdr()
446 strtab_sz = shdr->sh_size; in process_shdr()
464 if (shdr->sh_size == 0 || shdr->sh_entsize == 0) { in process_shdr()
469 capn = (shdr->sh_size / shdr->sh_entsize); in process_shdr()
/titanic_51/usr/src/lib/libdtrace/common/
H A Ddt_link.c63 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \
64 elf_file.shdr[(index)].sh_size)
506 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); in dump_elf32()
508 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); in dump_elf32()
515 shp->sh_size = dof->dofh_filesz; in dump_elf32()
517 off = shp->sh_offset + shp->sh_size; in dump_elf32()
524 shp->sh_size = de.de_strlen; in dump_elf32()
526 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32()
536 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); in dump_elf32()
538 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, in dump_elf32()
[all...]
/titanic_51/usr/src/cmd/sgs/size/common/
H A Dprocess.c161 first += shdr.sh_size; in process()
166 second += shdr.sh_size; in process()
170 third += shdr.sh_size; in process()
175 size += shdr.sh_size; in process()
179 (void) printf(prusect[numbase], shdr.sh_size); in process()
/titanic_51/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c65 shstr->gs_data = mdb_zalloc(shstr->gs_shdr.sh_size + 1, UM_SLEEP); in gelf_sect_init()
67 if (IOP_READ(gf->gf_io, shstr->gs_data, shstr->gs_shdr.sh_size) != in gelf_sect_init()
68 shstr->gs_shdr.sh_size) { in gelf_sect_init()
70 mdb_free(shstr->gs_data, shstr->gs_shdr.sh_size); in gelf_sect_init()
78 if (shp->sh_name >= shstr->gs_shdr.sh_size) { in gelf_sect_init()
123 gpp->p_filesz = shp->sh_size; in gelf_sect_init()
124 gpp->p_memsz = shp->sh_size; in gelf_sect_init()
144 IOP_NAME(gf->gf_io), gsp->gs_name, (ulong_t)gsp->gs_shdr.sh_size); in mdb_gelf_sect_load()
146 gsp->gs_data = mdb_alloc(gsp->gs_shdr.sh_size, UM_SLEEP); in mdb_gelf_sect_load()
154 nbytes = IOP_READ(gf->gf_io, gsp->gs_data, gsp->gs_shdr.sh_size); in mdb_gelf_sect_load()
[all...]
/titanic_51/usr/src/uts/common/sharefs/
H A Dshare.h48 size_t sh_size; member
59 size32_t sh_size; member
/titanic_51/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c201 (size_t)symhdr->sh_size, in _elf_nlist()
202 (size_t)((symhdr->sh_size / symhdr->sh_entsize) * in _elf_nlist()
225 if ((strdata = elf_read(fd, strhdr->sh_offset, strhdr->sh_size, in _elf_nlist()
226 strhdr->sh_size, ELF_T_BYTE)) == 0) { in _elf_nlist()
237 ((char *)strdata->d_buf)[strhdr->sh_size-1] = '\0'; in _elf_nlist()
244 if (sym->st_name > strhdr->sh_size) { in _elf_nlist()
/titanic_51/usr/src/uts/common/krtld/
H A Dkobj.c769 mp->strhdr->sh_size = dyn->d_un.d_val; in load_exec()
833 mp->symhdr->sh_size = mp->nsyms * mp->symhdr->sh_entsize; in load_exec()
935 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize; in load_linker()
942 mp->symsize = mp->symhdr->sh_size + mp->strhdr->sh_size + sizeof (int) + in load_linker()
1502 Sym *esp = (Sym *)(mp->symtbl + mp->symhdr->sh_size); in kobj_export_ksyms()
1578 mp->symhdr->sh_size = nsyms * symsize; in kobj_export_ksyms()
1586 mp->strhdr->sh_size = strsize; in kobj_export_ksyms()
1624 shp->sh_size); in kobj_export_ksyms()
1796 dyndata = kobj_alloc(dshp->sh_size, KM_WAI in do_dynamic()
[all...]
/titanic_51/usr/src/cmd/sgs/elfedit/common/
H A Dutil_machelf.c217 Word cnt = symsec->sec_shdr->sh_size / symsec->sec_shdr->sh_entsize; in elfedit_name_to_symndx()
382 *num = cache->sec_shdr->sh_size / in elfedit_sec_getcap()
421 *num = cache->sec_shdr->sh_size / cache->sec_shdr->sh_entsize; in elfedit_sec_getdyn()
462 *num = cache->sec_shdr->sh_size / in elfedit_sec_getsyminfo()
609 *num = symsec->sec_shdr->sh_size / symsec->sec_shdr->sh_entsize; in elfedit_sec_getsymtab()
675 *num = xshndxsec->sec_shdr->sh_size / xshndxsec->sec_shdr->sh_entsize; in elfedit_sec_getxshndx()
736 *num = versymsec->sec_shdr->sh_size / versymsec->sec_shdr->sh_entsize; in elfedit_sec_getversym()
818 len = sec->sec_shdr->sh_size - tail_ign; in elfedit_sec_findstr()
868 Word numdyn = dynsec->sec_shdr->sh_size / dynsec->sec_shdr->sh_entsize; in elfedit_dynstr_getpad()
945 ins_off = strsec->sec_shdr->sh_size in elfedit_dynstr_insert()
[all...]
/titanic_51/usr/src/cmd/sgs/libld/common/
H A Dsections.c181 (isp->is_shdr->sh_size > 0))) && in isdesc_discarded()
650 shdr->sh_size = size; in new_section()
716 shdr->sh_size = size; in new_section_from_template()
763 shdr->sh_size = size; in ld_make_bss()
919 shdr->sh_size = (Xword)data->d_size; in make_comment()
1301 shdr->sh_size = (Xword)size; in make_dynamic()
1335 shdr->sh_size = (Xword)size; in ld_make_got()
1392 shdr->sh_size = (Xword)size; in make_interp()
1697 if ((data->d_buf = libld_malloc(shdr->sh_size)) == NULL) in make_cap()
1936 shdr->sh_size in make_plt()
[all...]
/titanic_51/usr/src/uts/common/os/
H A Dksyms_snapshot.c87 size_t nsyms = symhdr->sh_size / symsize; in ksyms_walk_one()
171 shp->sh_size = kw.kw_size[KW_LOCALS] + kw.kw_size[KW_GLOBALS]; in ksyms_snapshot()
182 shp->sh_size = kw.kw_size[KW_STRINGS]; in ksyms_snapshot()
189 shp->sh_size = sizeof (ksyms_shstrtab); in ksyms_snapshot()
/titanic_51/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c56 symn = shdr->sh_size / shdr->sh_entsize; in update_sym()
92 num = (Word)(shdr->sh_size / shdr->sh_entsize); in syminfo()
/titanic_51/usr/src/uts/common/exec/elf/
H A Delf.c1054 *nshdrs = shdr.sh_size; in getelfhead()
1165 if ((*shstrsizep = shdr->sh_size) == 0) { in getelfshdr()
1432 size_t len, n = src->sh_size; in copy_scn()
1442 dst->sh_size = 0; in copy_scn()
1453 *doffset += src->sh_size; in copy_scn()
1563 if (shdr->sh_size > datasz && in process_scns()
1564 shdr->sh_size <= elf_datasz_max) { in process_scns()
1568 datasz = shdr->sh_size; in process_scns()
1581 v[i].sh_size = shdr->sh_size; in process_scns()
[all...]
/titanic_51/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c324 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) { in stringtbl()
350 *symnum = (shdr->sh_size / shdr->sh_entsize); in stringtbl()
405 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) { in symlookup()
414 symn = (Word)(shdr->sh_size / shdr->sh_entsize); in symlookup()
994 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) { in init_symtbl_state()
1003 state->symn = (Word)(shdr->sh_size / shdr->sh_entsize); in init_symtbl_state()
1049 ((symn = (uint_t)(shdr->sh_size / shdr->sh_entsize)) == 0)) in symbols_getxindex()
1264 if (((v + sym->st_size) > tshdr->sh_size)) { in output_symbol()
1269 EC_WORD(shndx), EC_XWORD(tshdr->sh_size), in output_symbol()
1327 if ((cshdr->sh_entsize == 0) || (cshdr->sh_size in cap_section()
[all...]
/titanic_51/usr/src/cmd/sgs/prof/common/
H A DsymintOpen.c259 nsyms_pri = tshd_p->sh_size / tshd_p->sh_entsize; in _symintOpen()
273 nsyms_pri = tshd_p->sh_size / tshd_p->sh_entsize; in _symintOpen()
281 nsyms_aux = tshd_p->sh_size / tshd_p->sh_entsize; in _symintOpen()

12345