Home
last modified time | relevance | path

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

12345

/titanic_41/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()
1409 strtab->sh_offset) != b->shdr[2].sh_size) { in fake_up_symtab()
1415 off += b->shdr[2].sh_size; in fake_up_symtab()
1433 size = base + symtab->sh_size + strtab->sh_size; in fake_up_symtab()
[all …]
/titanic_41/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_41/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 / sh[i].sh_entsize); in __fex_read_syms()
202 stoffset = (int) sh[i].sh_size; in __fex_read_syms()
/titanic_41/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()
/titanic_41/usr/src/lib/libctf/common/
H A Dctf_lib.c147 dst->sh_size = src->sh_size; in shdr_to_gelf()
291 shnum = x32.sh_size; in ctf_fdopen()
301 shnum = x64.sh_size; in ctf_fdopen()
343 strs_mapsz = sp[shstrndx].sh_size + in ctf_fdopen()
368 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdopen()
369 lhp->sh_name >= sp[shstrndx].sh_size) in ctf_fdopen()
377 ctfsect.cts_size = shp->sh_size; in ctf_fdopen()
385 symsect.cts_size = shp->sh_size; in ctf_fdopen()
392 strsect.cts_size = lhp->sh_size; in ctf_fdopen()
/titanic_41/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_41/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_41/usr/src/lib/libdtrace/common/
H A Ddt_link.c64 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \
65 elf_file.shdr[(index)].sh_size)
507 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); in dump_elf32()
509 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); in dump_elf32()
516 shp->sh_size = dof->dofh_filesz; in dump_elf32()
518 off = shp->sh_offset + shp->sh_size; in dump_elf32()
525 shp->sh_size = de.de_strlen; in dump_elf32()
527 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32()
537 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); in dump_elf32()
539 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32()
[all …]
/titanic_41/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_41/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_41/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_41/usr/src/uts/common/sharefs/
H A Dshare.h48 size_t sh_size; member
59 size32_t sh_size; member
/titanic_41/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_41/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_WAIT|KM_TMP); in do_dynamic()
1797 if (kobj_read_file(file, dyndata, dshp->sh_size, dshp->sh_offset) < 0) { in do_dynamic()
[all …]
/titanic_41/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 - tail_ign; in elfedit_dynstr_insert()
H A Delfedit_machelf.c304 symsec_cnt = symsec->sec_shdr->sh_size / sizeof (Sym); in elfedit64_init_obj_state()
309 aux_cnt = _cache->sec_shdr->sh_size / sizeof (Word); in elfedit64_init_obj_state()
322 aux_cnt = _cache->sec_shdr->sh_size / sizeof (Syminfo); in elfedit64_init_obj_state()
335 aux_cnt = _cache->sec_shdr->sh_size / sizeof (Versym); in elfedit64_init_obj_state()
365 numdyn = dynsec->sec_shdr->sh_size / in elfedit64_init_obj_state()
/titanic_41/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 = (Xword)size; in make_plt()
[all …]
/titanic_41/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_41/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_41/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()
1631 sz = MAX(symtab->sh_size, in process_scns()
[all …]
/titanic_41/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c320 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) { in stringtbl()
346 *symnum = (shdr->sh_size / shdr->sh_entsize); in stringtbl()
401 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) { in symlookup()
410 symn = (Word)(shdr->sh_size / shdr->sh_entsize); in symlookup()
990 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) { in init_symtbl_state()
999 state->symn = (Word)(shdr->sh_size / shdr->sh_entsize); in init_symtbl_state()
1045 ((symn = (uint_t)(shdr->sh_size / shdr->sh_entsize)) == 0)) in symbols_getxindex()
1260 if (((v + sym->st_size) > tshdr->sh_size)) { in output_symbol()
1265 EC_WORD(shndx), EC_XWORD(tshdr->sh_size), in output_symbol()
1323 if ((cshdr->sh_entsize == 0) || (cshdr->sh_size == 0)) { in cap_section()
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/sgs/elfedit/modules/common/
H A Dshdr.c323 EC_XWORD(shdr->sh_size)); in print_shdr()
675 Xword sh_size; in cmd_body() local
677 sh_size = elfedit_atoui(argstate.argv[1], NULL); in cmd_body()
678 if (shdr->sh_size == sh_size) { in cmd_body()
683 EC_XWORD(shdr->sh_size)); in cmd_body()
689 EC_XWORD(shdr->sh_size), in cmd_body()
690 EC_XWORD(sh_size)); in cmd_body()
692 shdr->sh_size = sh_size; in cmd_body()
/titanic_41/usr/src/lib/libelfsign/common/
H A Delfsignlib.c523 sig_offset < shdr.sh_offset + shdr.sh_size) { in elfsign_signatures()
524 sig_offset = shdr.sh_offset + shdr.sh_size; in elfsign_signatures()
559 if (old_size != shdr.sh_size) { in elfsign_signatures()
561 "and section size %lld", old_size, shdr.sh_size); in elfsign_signatures()
595 shdr.sh_size = 0; in elfsign_signatures()
701 if (shdr.sh_size == new_size) in elfsign_adjustoffsets()
715 name ? name : "NULL", shdr.sh_offset, shdr.sh_size, new_size); in elfsign_adjustoffsets()
716 shdr.sh_size = new_size; in elfsign_adjustoffsets()
721 prev_end = shdr.sh_offset + shdr.sh_size; in elfsign_adjustoffsets()
794 name ? name : "NULL", shdr.sh_size, in elfsign_adjustoffsets()
[all …]

12345