Home
last modified time | relevance | path

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

123

/titanic_52/usr/src/tools/elfextract/
H A Delfextract.c68 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract32()
76 allphdrs = ELFSEEK(eh->e_phoff); in extract32()
138 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract64()
146 allphdrs = ELFSEEK(eh->e_phoff); in extract64()
/titanic_52/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c316 if ((eh->e_phoff == 0) || in _elf_phdr()
317 (elf->ed_fsz <= eh->e_phoff) || in _elf_phdr()
318 (elf->ed_fsz - eh->e_phoff < fsz)) { in _elf_phdr()
323 if (inplace && fsz >= msz && eh->e_phoff % sizeof (ElfField) == 0) { in _elf_phdr()
324 elf->ed_phdr = (Elf_Void *)(elf->ed_ident + eh->e_phoff); in _elf_phdr()
333 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_phoff); in _elf_phdr()
340 if ((_elf_vm(elf, (size_t)eh->e_phoff, fsz) != OK_YES) || in _elf_phdr()
H A Dupdate.c185 eh->e_phoff = (Off)hi; in _elf_upd_lib()
188 eh->e_phoff = 0; in _elf_upd_lib()
378 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi) in _elf_upd_usr()
562 dst.d_buf = (Elf_Void *)(image + eh->e_phoff); in wrt()
564 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()
/titanic_52/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c95 if (eh->e_phnum == 0 || eh->e_phoff == 0) in dboot_elfload64()
101 allphdrs = PGETBYTES(eh->e_phoff); in dboot_elfload64()
/titanic_52/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
/titanic_52/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c452 (void) memcpy(ep, ehdr, offsetof(Ehdr, e_phoff)); in fake_elf64()
455 ep->e_phoff = sizeof (Ehdr); in fake_elf64()
458 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; in fake_elf64()
477 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize, in fake_elf64()
478 addr + ehdr->e_phoff) != phnum * ep->e_phentsize) { in fake_elf64()
H A DPcore.c1602 efp->e_hdr.e_phoff = e64.e_phoff; in core_elf_fdopen()
1622 efp->e_hdr.e_phoff = (Elf64_Off)e32.e_phoff; in core_elf_fdopen()
1689 } else if (efp->e_hdr.e_phoff != 0) { in core_elf_fdopen()
1706 efp->e_hdr.e_phoff) != sizeof (phdr32)) { in core_elf_fdopen()
1715 efp->e_hdr.e_phoff) != sizeof (phdr)) { in core_elf_fdopen()
1742 if (efp->e_hdr.e_shoff == efp->e_hdr.e_phoff + in core_elf_fdopen()
1746 efp->e_hdr.e_phoff + in core_elf_fdopen()
2339 if (pread64(core_fd, phbuf, nbytes, core.e_hdr.e_phoff) !
[all...]
H A DPgcore.c1131 ehdr.e_phoff = ehdr.e_ehsize; in Pfgcore()
1145 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
1151 poff = ehdr.e_phoff; in Pfgcore()
1189 ehdr.e_phoff = ehdr.e_ehsize; in Pfgcore()
1203 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
1209 poff = ehdr.e_phoff; in Pfgcore()
H A DPcontrol.h179 Elf64_Off e_phoff; member
/titanic_52/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()
/titanic_52/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()
/titanic_52/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()
/titanic_52/usr/src/psm/stand/boot/common/
H A Dreadfile.c355 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0) in read_elf32()
372 dprintf("lseek: args = %x %x %x\n", fd, elfhdrp->e_phoff, 0); in read_elf32()
373 if (lseek(fd, elfhdrp->e_phoff, 0) == -1) in read_elf32()
755 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0) in read_elf64()
772 (u_longlong_t)elfhdrp->e_phoff, 0); in read_elf64()
773 if (lseek(fd, elfhdrp->e_phoff, 0) == -1) in read_elf64()
/titanic_52/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()
/titanic_52/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
/titanic_52/usr/src/cmd/sgs/librtld_db/i386/
H A Dplt32_resolution.c82 off = rl->rl_base + ehdr.e_phoff; in rli_func()
/titanic_52/usr/src/uts/i86pc/os/
H A Dfastboot.c374 if ((ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize) >= imgsz) in fastboot_elf64_find_dboot_load_offset()
377 phdrbase = (uint8_t *)img + ehdr->e_phoff; in fastboot_elf64_find_dboot_load_offset()
413 if ((ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize) >= imgsz) in fastboot_elf32_find_loadables()
416 phdrbase = (uint8_t *)img + ehdr->e_phoff; in fastboot_elf32_find_loadables()
/titanic_52/usr/src/uts/common/sys/
H A Delf.h75 Elf32_Off e_phoff; /* phdr file offset */ member
93 Elf64_Off e_phoff; /* phdr file offset */ member
/titanic_52/usr/src/uts/common/os/
H A Dbrand.c450 dst->e_phoff = src->e_phoff; in Ehdr32to64()
757 sedp->sed_phdr = voffset + ehdr.e_phoff; in brand_solaris_elfexec()
/titanic_52/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c61 EHDR_CMD_T_E_PHOFF = 6, /* ehdr:e_phoff */
473 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()
1838 /* ehdr:e_phoff */ in elfedit_init()
2106 /* ehdr:e_phoff */ in elfedit_init()
/titanic_52/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dboot2.c188 fs_off = eh.e_phoff; in load()
/titanic_52/usr/src/boot/sys/boot/sparc64/boot1/
H A Dboot1.c429 fs_off = eh.e_phoff + i * eh.e_phentsize; in loadzfs()
477 fs_off = eh.e_phoff + i * eh.e_phentsize; in load()

123