Home
last modified time | relevance | path

Searched refs:e_phoff (Results 1 – 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c308 if ((eh->e_phoff == 0) || in _elf_phdr()
309 (elf->ed_fsz <= eh->e_phoff) || in _elf_phdr()
310 (elf->ed_fsz - eh->e_phoff < fsz)) { in _elf_phdr()
315 if (inplace && fsz >= msz && eh->e_phoff % sizeof (ElfField) == 0) { in _elf_phdr()
316 elf->ed_phdr = (Elf_Void *)(elf->ed_ident + eh->e_phoff); in _elf_phdr()
325 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_phoff); in _elf_phdr()
332 if ((_elf_vm(elf, (size_t)eh->e_phoff, fsz) != OK_YES) || in _elf_phdr()
H A Dupdate.c188 eh->e_phoff = (Off)hi; in _elf_upd_lib()
191 eh->e_phoff = 0; in _elf_upd_lib()
380 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi) in _elf_upd_usr()
563 dst.d_buf = (Elf_Void *)(image + eh->e_phoff); in wrt()
565 hi = (Xword)(eh->e_phoff + dst.d_size); in wrt()
H A Dgelf.c107 dst->e_phoff = (Elf64_Off)e->e_phoff; in gelf_getehdr()
167 d->e_phoff = (Elf32_Off)src->e_phoff; in gelf_update_ehdr()
/illumos-gate/usr/src/tools/elfextract/
H A Delfextract.c71 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract32()
79 allphdrs = ELFSEEK(eh->e_phoff); in extract32()
141 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract64()
149 allphdrs = ELFSEEK(eh->e_phoff); in extract64()
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c99 if (eh->e_phnum == 0 || eh->e_phoff == 0) in dboot_elfload64()
105 allphdrs = PGETBYTES(eh->e_phoff); in dboot_elfload64()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h66 TYP(e_phoff,4);
84 TYP(e_phoff,8);
H A Ddwarf_elfstructs.h74 TYP(e_phoff,4);
92 TYP(e_phoff,8);
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c454 (void) memcpy(ep, ehdr, offsetof(Ehdr, e_phoff)); in fake_elf64()
457 ep->e_phoff = sizeof (Ehdr); in fake_elf64()
460 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; in fake_elf64()
479 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize, in fake_elf64()
480 addr + ehdr->e_phoff) != phnum * ep->e_phentsize) { in fake_elf64()
H A DPcore.c1755 efp->e_hdr.e_phoff = e64.e_phoff; in core_elf_fdopen()
1775 efp->e_hdr.e_phoff = (Elf64_Off)e32.e_phoff; in core_elf_fdopen()
1842 } else if (efp->e_hdr.e_phoff != 0) { in core_elf_fdopen()
1859 efp->e_hdr.e_phoff) != sizeof (phdr32)) { in core_elf_fdopen()
1868 efp->e_hdr.e_phoff) != sizeof (phdr)) { in core_elf_fdopen()
1895 if (efp->e_hdr.e_shoff == efp->e_hdr.e_phoff + in core_elf_fdopen()
1899 efp->e_hdr.e_phoff + in core_elf_fdopen()
2494 if (pread64(core_fd, phbuf, nbytes, core.e_hdr.e_phoff) != nbytes) {
H A DPgcore.c1187 ehdr.e_phoff = ehdr.e_ehsize; in Pfgcore()
1201 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
1207 poff = ehdr.e_phoff; in Pfgcore()
1245 ehdr.e_phoff = ehdr.e_ehsize; in Pfgcore()
1259 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
1265 poff = ehdr.e_phoff; in Pfgcore()
H A DPcontrol.h190 Elf64_Off e_phoff; member
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h171 Elf32_Off e_phoff; /* Program header file offset. */ member
188 Elf64_Off e_phoff; /* Program header file offset. */ member
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c96 dbg_print(lml, MSG_ORIG(MSG_ELFX_PHOFF), EC_OFF(ehdr->e_phoff), in Elf_ehdr()
100 dbg_print(lml, MSG_ORIG(MSG_ELF_PHOFF), EC_OFF(ehdr->e_phoff), in Elf_ehdr()
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c122 if ((eh->e_phnum == 0) || (eh->e_phoff == 0)) { in patch64()
131 if ((phdrs = ELFSEEK(eh->e_phoff)) == NULL) { in patch64()
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c140 if (lseek(fd, h.e_phoff, SEEK_SET) != h.e_phoff || in __fex_read_syms()
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c283 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0) in read_elf32()
300 dprintf("lseek: args = %x %x %x\n", fd, elfhdrp->e_phoff, 0); in read_elf32()
301 if (lseek(fd, elfhdrp->e_phoff, 0) == -1) in read_elf32()
657 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0) in read_elf64()
674 (u_longlong_t)elfhdrp->e_phoff, 0); in read_elf64()
675 if (lseek(fd, elfhdrp->e_phoff, 0) == -1) in read_elf64()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h74 Elf32_Off e_phoff; /* program header table file offset */ member
H A Dboot.c116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0 in load_image()
117 || ((pu.elf->e_phoff + (pu.elf->e_phentsize * pu.elf->e_phnum)) in load_image()
602 (pu.elf->e_phoff + ((int) buffer) in load_image()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfastboot.c366 if ((ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize) >= imgsz) in fastboot_elf64_find_dboot_load_offset()
369 phdrbase = (uint8_t *)img + ehdr->e_phoff; in fastboot_elf64_find_dboot_load_offset()
405 if ((ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize) >= imgsz) in fastboot_elf32_find_loadables()
408 phdrbase = (uint8_t *)img + ehdr->e_phoff; in fastboot_elf32_find_loadables()
/illumos-gate/usr/src/boot/sys/sys/
H A Delf32.h61 Elf32_Off e_phoff; /* Program header file offset. */ member
H A Delf64.h70 Elf64_Off e_phoff; /* Program header file offset. */ member
/illumos-gate/usr/src/cmd/sgs/librtld_db/i386/
H A Dplt32_resolution.c79 off = rl->rl_base + ehdr.e_phoff; in rli_func()
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h76 Elf32_Off e_phoff; /* phdr file offset */ member
94 Elf64_Off e_phoff; /* phdr file offset */ member
/illumos-gate/usr/src/uts/common/os/
H A Dbrand.c451 dst->e_phoff = src->e_phoff; in Ehdr32to64()
758 sedp->sed_phdr = voffset + ehdr.e_phoff; in brand_solaris_elfexec()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c473 EC_WORD(ehdr->e_phoff)); in print_ehdr()
867 if (ehdr->e_phoff == off) { in cmd_body()
870 EC_OFF(ehdr->e_phoff)); in cmd_body()
874 EC_OFF(ehdr->e_phoff), EC_OFF(off)); in cmd_body()
876 ehdr->e_phoff = off; in cmd_body()

123