/titanic_52/usr/src/tools/elfextract/ |
H A D | elfextract.c | 68 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 D | clscook.c | 316 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 D | update.c | 185 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 D | gelf.c | 107 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 D | dboot_elfload.c | 95 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 D | elf.h | 171 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 D | Psymtab_machelf32.c | 452 (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 D | Pcore.c | 1602 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 D | Pgcore.c | 1131 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 D | Pcontrol.h | 179 Elf64_Off e_phoff; member
|
/titanic_52/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 96 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 D | mbh_patch.c | 122 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.c | 140 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 D | readfile.c | 355 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 D | i386-elf.h | 74 Elf32_Off e_phoff; /* program header table file offset */ member
|
H A D | boot.c | 116 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 D | elf32.h | 61 Elf32_Off e_phoff; /* Program header file offset. */ member
|
H A D | elf64.h | 70 Elf64_Off e_phoff; /* Program header file offset. */ member
|
/titanic_52/usr/src/cmd/sgs/librtld_db/i386/ |
H A D | plt32_resolution.c | 82 off = rl->rl_base + ehdr.e_phoff; in rli_func()
|
/titanic_52/usr/src/uts/i86pc/os/ |
H A D | fastboot.c | 374 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 D | elf.h | 75 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 D | brand.c | 450 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 D | ehdr.c | 61 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 D | boot2.c | 188 fs_off = eh.e_phoff; in load()
|
/titanic_52/usr/src/boot/sys/boot/sparc64/boot1/ |
H A D | boot1.c | 429 fs_off = eh.e_phoff + i * eh.e_phentsize; in loadzfs() 477 fs_off = eh.e_phoff + i * eh.e_phentsize; in load()
|