Searched refs:e_phoff (Results 1 - 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/tools/elfextract/
H A Delfextract.c68 if (eh->e_phnum == 0 || eh->e_phoff == 0) {
76 allphdrs = ELFSEEK(eh->e_phoff);
138 if (eh->e_phnum == 0 || eh->e_phoff == 0) {
146 allphdrs = ELFSEEK(eh->e_phoff);
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c95 if (eh->e_phnum == 0 || eh->e_phoff == 0)
101 allphdrs = PGETBYTES(eh->e_phoff);
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c316 if ((eh->e_phoff == 0) ||
317 (elf->ed_fsz <= eh->e_phoff) ||
318 (elf->ed_fsz - eh->e_phoff < fsz)) {
323 if (inplace && fsz >= msz && eh->e_phoff % sizeof (ElfField) == 0) {
324 elf->ed_phdr = (Elf_Void *)(elf->ed_ident + eh->e_phoff);
333 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_phoff);
340 if ((_elf_vm(elf, (size_t)eh->e_phoff, fsz) != OK_YES) ||
H A Dupdate.c185 eh->e_phoff = (Off)hi;
188 eh->e_phoff = 0;
378 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi)
562 dst.d_buf = (Elf_Void *)(image + eh->e_phoff);
564 hi = (Xword)(eh->e_phoff + dst.d_size);
H A Dgelf.c107 dst->e_phoff = (Elf64_Off)e->e_phoff;
167 d->e_phoff = (Elf32_Off)src->e_phoff;
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h171 Elf32_Off e_phoff; /* Program header file offset. */ member in struct:__anon2085
188 Elf64_Off e_phoff; /* Program header file offset. */ member in struct:__anon2086
/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),
100 dbg_print(lml, MSG_ORIG(MSG_ELF_PHOFF), EC_OFF(ehdr->e_phoff),
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c71 if ((eh->e_phnum == 0) || (eh->e_phoff == 0)) {
80 if ((phdrs = ELFSEEK(eh->e_phoff)) == NULL) {
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c454 (void) memcpy(ep, ehdr, offsetof(Ehdr, e_phoff));
457 ep->e_phoff = sizeof (Ehdr);
460 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize;
479 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize,
480 addr + ehdr->e_phoff) != phnum * ep->e_phentsize) {
H A DPcontrol.h181 Elf64_Off e_phoff; member in struct:elf_file_header
H A DPcore.c1653 efp->e_hdr.e_phoff = e64.e_phoff;
1673 efp->e_hdr.e_phoff = (Elf64_Off)e32.e_phoff;
1740 } else if (efp->e_hdr.e_phoff != 0) {
1757 efp->e_hdr.e_phoff) != sizeof (phdr32)) {
1766 efp->e_hdr.e_phoff) != sizeof (phdr)) {
1793 if (efp->e_hdr.e_shoff == efp->e_hdr.e_phoff +
1797 efp->e_hdr.e_phoff +
2390 if (pread64(core_fd, phbuf, nbytes, core.e_hdr.e_phoff) !
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h74 Elf32_Off e_phoff; /* program header table file offset */ member in struct:__anon2184
H A Dboot.c116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0
117 || ((pu.elf->e_phoff + (pu.elf->e_phentsize * pu.elf->e_phnum))
602 (pu.elf->e_phoff + ((int) buffer)
/illumos-gate/usr/src/cmd/sgs/librtld_db/i386/
H A Dplt32_resolution.c82 off = rl->rl_base + ehdr.e_phoff;
/illumos-gate/usr/src/boot/sys/sys/
H A Delf32.h61 Elf32_Off e_phoff; /* Program header file offset. */ member in struct:__anon407
H A Delf64.h70 Elf64_Off e_phoff; /* Program header file offset. */ member in struct:__anon424
/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 ||
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c355 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0)
372 dprintf("lseek: args = %x %x %x\n", fd, elfhdrp->e_phoff, 0);
373 if (lseek(fd, elfhdrp->e_phoff, 0) == -1)
755 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0)
772 (u_longlong_t)elfhdrp->e_phoff, 0);
773 if (lseek(fd, elfhdrp->e_phoff, 0) == -1)
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c125 dst->e_phoff = (Elf64_Off)src->e_phoff;
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h75 Elf32_Off e_phoff; /* phdr file offset */ member in struct:__anon252
93 Elf64_Off e_phoff; /* phdr file offset */ member in struct:__anon253
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c167 phdr = (Elf32_Phdr *)((caddr_t)ehdr + ehdr->e_phoff);
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c167 phdr = (Elf32_Phdr *)((caddr_t)ehdr + ehdr->e_phoff);
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c151 hdr.elf_hdr.e_phoff = offsetof(ksyms_header_t, text_phdr);
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfastboot.c374 if ((ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize) >= imgsz)
377 phdrbase = (uint8_t *)img + ehdr->e_phoff;
413 if ((ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize) >= imgsz)
416 phdrbase = (uint8_t *)img + ehdr->e_phoff;
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dboot2.c188 fs_off = eh.e_phoff;

Completed in 166 milliseconds

123