Searched refs:p_filesz (Results 1 - 25 of 52) sorted by relevance

123

/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c391 phdr->p_filesz);
393 if ((note_buf = kmem_alloc(phdr->p_filesz, 0)) == NULL)
401 phdr->p_filesz, (void *)nhdr);
404 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz)
432 } while (offset < phdr->p_filesz);
434 kmem_free(note_buf, phdr->p_filesz);
450 dprintf("\tp_memsz = %x, p_filesz = %x\n",
451 phdr->p_memsz, phdr->p_filesz);
481 printf("0x%x+", phdr->p_filesz);
[all...]
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c167 (ulong_t)phdr->p_filesz, (ulong_t)phdr->p_offset,
170 (void *)(uintptr_t)src, (size_t)phdr->p_filesz);
172 next_addr = dst + phdr->p_filesz;
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dphdr.c42 dbg_print(lml, MSG_ORIG(MSG_PHD_FILESZ), EC_XWORD(phdr->p_filesz),
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Dfcns.c128 field, EC_XWORD(p_phdr.p_filesz),
144 field, EC_XWORD(p_phdr.p_filesz),
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf.c406 (long)phdr[i].p_filesz, (long)phdr[i].p_offset,
411 (long)phdr[i].p_filesz, (long)phdr[i].p_offset,
417 printf("text=0x%lx ", (long)phdr[i].p_filesz);
419 printf("data=0x%lx", (long)phdr[i].p_filesz);
420 if (phdr[i].p_filesz < phdr[i].p_memsz)
421 printf("+0x%lx", (long)(phdr[i].p_memsz -phdr[i].p_filesz));
436 if (phdr[i].p_filesz > fpcopy) {
439 phdr[i].p_filesz - fpcopy,
447 phdr[i].p_filesz - fpcopy,
456 if (phdr[i].p_filesz < phd
[all...]
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c254 First += p.p_filesz;
257 Second += p.p_filesz;
273 (void) printf(prusect[numbase], p.p_filesz);
274 total += p.p_filesz;
/illumos-gate/usr/src/uts/common/exec/elf/
H A Dold_notes.c70 v[0].p_filesz = (sizeof (Note) * (3 + nlwp))
77 v[0].p_filesz += nlwp * sizeof (Note)
80 v[0].p_filesz += nlwp * sizeof (Note)
94 v[0].p_filesz += sizeof (Note) +
H A Delf_notes.c97 v[0].p_filesz = (sizeof (Note) * (10 + 2 * nlwp + nzomb + nfd))
113 v[0].p_filesz += sizeof (Note) +
121 v[0].p_filesz += sizeof (Note) + roundup(sizeof (prcred_t) +
124 v[0].p_filesz += sizeof (Note) +
135 v[0].p_filesz += sizeof (Note) + roundup(size, sizeof (Word));
139 v[0].p_filesz += nlwp * sizeof (Note)
153 v[0].p_filesz += sizeof (Note) +
162 v[0].p_filesz += nlwp * sizeof (Note)
H A Delf.c527 (dynamicphdr->p_filesz > 0)) {
532 for (i = 0; i < dynamicphdr->p_filesz;
534 int ndyns = (dynamicphdr->p_filesz - i) / sizeof (*dyn);
571 (capsize = capphdr->p_filesz) > 0 &&
638 dlnsize = intphdr->p_filesz;
646 if ((error = vn_rdwr(UIO_READ, vp, dlnp, intphdr->p_filesz,
1355 zfodsz = (size_t)phdr->p_memsz - phdr->p_filesz;
1374 phdr->p_filesz, PAGESIZE);
1379 curproc, addr + phdr->p_filesz +
1402 if (error = execmap(vp, addr, phdr->p_filesz,
[all...]
/illumos-gate/usr/src/boot/sys/boot/sparc64/boot1/
H A Dboot1.c438 if (zbread(p, fs_off, ph.p_filesz) != ph.p_filesz) {
442 if (ph.p_filesz != ph.p_memsz)
443 bzero(p + ph.p_filesz, ph.p_memsz - ph.p_filesz);
486 if (fsread(ino, p, ph.p_filesz) != ph.p_filesz) {
490 if (ph.p_filesz != ph.p_memsz)
491 bzero(p + ph.p_filesz, ph.p_memsz - ph.p_filesz);
[all...]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dphdr.c54 PHDR_CMD_T_P_FILESZ = 5, /* phdr:p_filesz */
312 ((interp->phdr->p_offset + interp->phdr->p_filesz) <=
473 EC_XWORD(phdr->p_filesz));
577 (tphdr->p_offset + tphdr->p_filesz)) &&
640 interp.phdr->p_filesz = str_size;
644 EC_XWORD(interp.phdr->p_filesz));
781 Xword p_filesz = elfedit_atoui(argstate.argv[1], NULL); local
783 if (phdr->p_filesz == p_filesz) {
787 EC_XWORD(phdr->p_filesz));
[all...]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h207 Elf32_Size p_filesz; /* Size of contents in file. */ member in struct:__anon2087
219 Elf64_Size p_filesz; /* Size of contents in file. */ member in struct:__anon2088
/illumos-gate/usr/src/tools/elfextract/
H A Delfextract.c97 for (c = 0; c < phdr->p_filesz; ++c) {
167 for (c = 0; c < phdr->p_filesz; ++c) {
/illumos-gate/usr/src/tools/btxld/
H A Dbtxld.c376 hdr->text = le32toh(ep->p_filesz);
382 hdr->data = le32toh(ep->p_filesz);
384 le32toh(ep->p_filesz);
425 eh.p[0].p_filesz = eh.p[0].p_memsz = htole32(hdr->text);
427 le32toh(eh.p[0].p_filesz));
431 eh.p[1].p_filesz = eh.p[1].p_memsz = htole32(hdr->data);
434 eh.sh[2].sh_size = eh.p[0].p_filesz;
437 eh.sh[3].sh_size = eh.p[1].p_filesz;
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dtls.c144 tmi.tm_filesz = tlsphdr->p_filesz;
173 ulong_t filesz = phdr->p_filesz;
324 tlsmodlist[tlsmodndx]->tm_filesz = tlsphdr->p_filesz;
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c271 if ((dp = malloc(phdr->p_filesz)) == NULL)
273 if (Pread(P, dp, phdr->p_filesz, phdr->p_vaddr) !=
274 phdr->p_filesz)
282 for (i = 0; i < phdr->p_filesz / sizeof (Dyn); i++) {
401 size += roundup(phdr->p_filesz, SH_ADDRALIGN);
597 sp->sh_size = phdr->p_filesz;
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c254 if (!(phdr.p_flags & PF_W) && (phdr.p_filesz > textsize)) {
268 chk = (size_t)phdr.p_vaddr + (size_t)phdr.p_filesz;
269 if (phdr.p_vaddr + phdr.p_filesz != (GElf_Xword)chk)
273 textsize = (size_t)phdr.p_filesz;
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c283 if (pptr->p_memsz > pptr->p_filesz) {
284 foff = (int)faddr + pptr->p_vaddr + pptr->p_filesz;
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c283 if (pptr->p_memsz > pptr->p_filesz) {
285 pptr->p_filesz;
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dboot2.c201 klen += ep[i].p_filesz;
203 if (xfsread(ino, p, ep[i].p_filesz))
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h170 Elf32_Word p_filesz; member in struct:__anon2187
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dmcs.h177 GElf_Xword p_filesz; member in struct:seg_table
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c127 (mem >= (phdr->p_offset + phdr->p_filesz))) {
/illumos-gate/usr/src/boot/sys/sys/
H A Delf32.h111 Elf32_Word p_filesz; /* Size of contents in file. */ member in struct:__anon410
H A Delf64.h121 Elf64_Xword p_filesz; /* Size of contents in file. */ member in struct:__anon427

Completed in 105 milliseconds

123