Searched refs:sh_size (Results 1 - 25 of 113) sorted by relevance

12345

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsharefs.c57 sh->sh_size = i;
60 sh->sh_size += j;
64 sh->sh_size += j;
68 sh->sh_size += j;
72 sh->sh_size += j;
/illumos-gate/usr/src/uts/common/sharefs/
H A Dshare.h48 size_t sh_size; member in struct:share
59 size32_t sh_size; member in struct:share32
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshnum.c71 *shnum = shdr0.sh_size;
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c498 sp->sh_size = sizeof (shstr);
505 off += roundup(sp->sh_size, SH_ADDRALIGN);
519 sp->sh_size = ldynsym_size;
522 sp->sh_info = sp->sh_size / sizeof (Sym);
526 if (Pread(P, &elfdata[off], sp->sh_size,
527 sp->sh_addr) != sp->sh_size) {
532 off += sp->sh_size;
547 sp->sh_size = dynsym_size;
553 if (Pread(P, &elfdata[off], sp->sh_size,
554 sp->sh_addr) != sp->sh_size) {
[all...]
H A DPcore.c1418 size = base + symtab->sh_size + strtab->sh_size;
1435 b->shdr[1].sh_size = symtab->sh_size;
1443 if (pread64(P->asfd, &b->data[off], b->shdr[1].sh_size,
1444 symtab->sh_offset) != b->shdr[1].sh_size) {
1450 off += b->shdr[1].sh_size;
1453 b->shdr[2].sh_size = strtab->sh_size;
1459 if (pread64(P->asfd, &b->data[off], b->shdr[2].sh_size,
[all...]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c165 if (i == h.e_shnum || sh[i].sh_size == 0 ||
169 sh[sh[i].sh_link].sh_size == 0)
176 size = (int) (sh[i].sh_size + sh[sh[i].sh_link].sh_size);
192 read(fd, stbuf, sh[i].sh_size) != sh[i].sh_size ||
195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) !=
196 sh[sh[i].sh_link].sh_size)
201 nsyms = (int) (sh[i].sh_size / s
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c56 symn = shdr->sh_size / shdr->sh_entsize;
92 num = (Word)(shdr->sh_size / shdr->sh_entsize);
/illumos-gate/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);
162 sharetab_size -= s->sh_size;
238 sh->sh_size = shl->shl_path + shl->shl_res +
241 sh->sh_size = strlen(sh->sh_path) +
250 sh->sh_size += 5;
274 ASSERT(sharetab_size >= s->sh_size);
275 sharetab_size -= s->sh_size;
276 sharetab_size += sh->sh_size;
304 sharetab_size += sh->sh_size;
[all...]
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c187 (ulong_t)shdr->sh_size,
189 next_addr + shdr->sh_size);
191 shdr->sh_size);
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c147 dst->sh_size = src->sh_size;
291 shnum = x32.sh_size;
301 shnum = x64.sh_size;
343 strs_mapsz = sp[shstrndx].sh_size +
368 if (shp->sh_name >= sp[shstrndx].sh_size ||
369 lhp->sh_name >= sp[shstrndx].sh_size)
377 ctfsect.cts_size = shp->sh_size;
385 symsect.cts_size = shp->sh_size;
392 strsect.cts_size = lhp->sh_size;
[all...]
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c217 EI_Ehdr_shnum = EI_Shdr.sh_size;
439 if ((strtab = malloc(shdr->sh_size)) == NULL)
442 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset)
443 != shdr->sh_size)
446 strtab_sz = shdr->sh_size;
464 if (shdr->sh_size == 0 || shdr->sh_entsize == 0) {
469 capn = (shdr->sh_size / shdr->sh_entsize);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c219 if (shdr[i].sh_size == 0)
226 lastaddr += shdr[i].sh_size;
239 lastaddr += shdr[i].sh_size;
250 lastaddr += shdr[ef->symtabindex].sh_size;
261 lastaddr += shdr[symstrindex].sh_size;
273 lastaddr += shdr[ef->shstrindex].sh_size;
282 lastaddr += shdr[i].sh_size;
318 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) {
444 *stopp = shdr[i].sh_addr + shdr[i].sh_size;
483 shdr[shdr[i].sh_info].sh_size)
[all...]
H A Dload_elf.c523 chunk = shdr[ehdr->e_shstrndx].sh_size;
533 size = shdr[i].sh_size;
554 (shdr[i].sh_offset + shdr[i].sh_size <=
557 shdr[i].sh_size = 0;
561 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0)
592 size = shdr[i].sh_size;
598 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset,
599 (uintmax_t)lastaddr, (uintmax_t)(lastaddr + shdr[i].sh_size));
612 result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size);
613 if (result < 0 || (size_t)result != shdr[i].sh_size) {
[all...]
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c161 first += shdr.sh_size;
166 second += shdr.sh_size;
170 third += shdr.sh_size;
175 size += shdr.sh_size;
179 (void) printf(prusect[numbase], shdr.sh_size);
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A DsymintOpen.c259 nsyms_pri = tshd_p->sh_size / tshd_p->sh_entsize;
273 nsyms_pri = tshd_p->sh_size / tshd_p->sh_entsize;
281 nsyms_aux = tshd_p->sh_size / tshd_p->sh_entsize;
/illumos-gate/usr/src/tools/ctf/cvt/
H A Doutput.c349 nent = shdr.sh_size / shdr.sh_entsize;
570 ddata->d_buf = xmalloc(ddata->d_size + shdr.sh_size +
572 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size);
573 strcpy((caddr_t)ddata->d_buf + shdr.sh_size,
575 ctfnameoff = (off_t)shdr.sh_size;
576 shdr.sh_size += seclen + 1;
584 int nsym = shdr.sh_size / shdr.sh_entsize;
588 ddata->d_buf = xmalloc(shdr.sh_size);
589 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size);
615 new_offset += shdr.sh_size;
[all...]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dshdr.c40 dbg_print(lml, MSG_ORIG(MSG_SHD_SIZE), EC_XWORD(shdr->sh_size),
46 Xword nelts = shdr->sh_size / shdr->sh_entsize;
/illumos-gate/usr/src/uts/common/ctf/
H A Dctf_mod.c141 symsect.cts_size = mp->symhdr->sh_size;
153 strsect.cts_size = mp->strhdr->sh_size;
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_elf.h67 Elf32_Size sh_size; /* Size in bytes. */ member in struct:__anon2090
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c53 nent = shdr.sh_size / shdr.sh_entsize;
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c87 size_t nsyms = symhdr->sh_size / symsize;
171 shp->sh_size = kw.kw_size[KW_LOCALS] + kw.kw_size[KW_GLOBALS];
182 shp->sh_size = kw.kw_size[KW_STRINGS];
189 shp->sh_size = sizeof (ksyms_shstrtab);
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c878 namesize = shp->sh_size;
879 names = kmem_zalloc(shp->sh_size, KM_SLEEP);
880 if (kobj_read_file(file, names, shp->sh_size, shp->sh_offset) < 0)
903 if ((shp->sh_size != 0) &&
921 mp->data_size += ALIGN(shp->sh_size, 8);
928 mp->text_size += ALIGN(shp->sh_size, 8);
955 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize;
958 mp->symsize = mp->symhdr->sh_size +
959 mp->nsyms * sizeof (symid_t) + mp->strhdr->sh_size;
962 mp->strings = (char *)(mp->symtbl + mp->symhdr->sh_size);
[all...]
/illumos-gate/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);
509 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
516 shp->sh_size = dof->dofh_filesz;
518 off = shp->sh_offset + shp->sh_size;
525 shp->sh_size = de.de_strlen;
527 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4);
537 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym);
539 off = P2ROUNDUP(shp->sh_offset + shp->sh_size,
[all...]
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c201 (size_t)symhdr->sh_size,
202 (size_t)((symhdr->sh_size / symhdr->sh_entsize) *
225 if ((strdata = elf_read(fd, strhdr->sh_offset, strhdr->sh_size,
226 strhdr->sh_size, ELF_T_BYTE)) == 0) {
237 ((char *)strdata->d_buf)[strhdr->sh_size-1] = '\0';
244 if (sym->st_name > strhdr->sh_size) {
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dldentry.c95 EC_XWORD(osp->os_shdr->sh_size));
125 EC_XWORD(isp->is_shdr->sh_size),

Completed in 144 milliseconds

12345