Home
last modified time | relevance | path

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

123

/dragonfly/contrib/binutils-2.34/bfd/
H A Delfcore.h185 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
233 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
234 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
244 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
392 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff), SEEK_SET) != 0) in NAME()
H A Delfcode.h248 dst->e_phoff = H_GET_WORD (abfd, src->e_phoff); in elf_swap_ehdr_in()
278 H_PUT_WORD (abfd, src->e_phoff, dst->e_phoff); in elf_swap_ehdr_out()
793 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_object_p()
1078 i_ehdr.e_phoff = i_ehdr.e_shoff = 0; in elf_checksum_contents()
1611 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file()
1717 err = target_read_memory (ehdr_vma + i_ehdr.e_phoff, (bfd_byte *) x_phdrs, in NAME()
/dragonfly/contrib/binutils-2.27/bfd/
H A Delfcore.h177 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
225 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
226 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
236 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
H A Delfcode.h248 dst->e_phoff = H_GET_WORD (abfd, src->e_phoff); in elf_swap_ehdr_in()
278 H_PUT_WORD (abfd, src->e_phoff, dst->e_phoff); in elf_swap_ehdr_out()
781 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_object_p()
1058 i_ehdr.e_phoff = i_ehdr.e_shoff = 0; in elf_checksum_contents()
1585 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file()
1689 err = target_read_memory (ehdr_vma + i_ehdr.e_phoff, (bfd_byte *) x_phdrs, in NAME()
/dragonfly/contrib/gdb-7/bfd/
H A Delfcore.h178 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
229 where = i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr); in elf_core_file_p()
232 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
242 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
H A Delfcode.h249 dst->e_phoff = H_GET_WORD (abfd, src->e_phoff); in elf_swap_ehdr_in()
279 H_PUT_WORD (abfd, src->e_phoff, dst->e_phoff); in elf_swap_ehdr_out()
779 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_object_p()
1056 i_ehdr.e_phoff = i_ehdr.e_shoff = 0; in elf_checksum_contents()
1581 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file()
1685 err = target_read_memory (ehdr_vma + i_ehdr.e_phoff, (bfd_byte *) x_phdrs, in NAME()
/dragonfly/libexec/rtld-elf/
H A Dmap_object.c106 phdr = (Elf_Phdr *) ((char *)hdr + hdr->e_phoff); in map_object()
274 if (phdr_vaddr == 0 && data_offset <= hdr->e_phoff && in map_object()
276 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) { in map_object()
277 phdr_vaddr = data_vaddr + hdr->e_phoff - data_offset; in map_object()
304 memcpy((char *)obj->phdr, (char *)hdr + hdr->e_phoff, phsize); in map_object()
381 if (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) > in get_elf_header()
/dragonfly/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c73 d->e_phoff = eh32->e_phoff; in gelf_getehdr()
156 LIBELF_COPY_U32(eh32, s, e_phoff); in gelf_update_ehdr()
H A Dlibelf_phdr.c71 phoff = (uint64_t) eh32->e_phoff; in _libelf_getphdr()
74 phoff = (uint64_t) eh64->e_phoff; in _libelf_getphdr()
H A Delf_update.c533 phoff = (off_t) eh32->e_phoff; in _libelf_resync_elf()
539 phoff = (off_t) eh64->e_phoff; in _libelf_resync_elf()
697 eh32->e_phoff = (uint32_t) phoff; in _libelf_resync_elf()
700 eh64->e_phoff = (uint64_t) phoff; in _libelf_resync_elf()
896 phoff = (uint64_t) eh32->e_phoff; in _libelf_write_phdr()
899 phoff = eh64->e_phoff; in _libelf_write_phdr()
H A Delf_types.m4107 `e_phoff, OFF',
124 `e_phoff, OFF',
/dragonfly/contrib/file/src/
H A Delfclass.h44 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
59 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
H A Dreadelf.h98 Elf32_Off e_phoff; member
115 Elf64_Off e_phoff; member
/dragonfly/contrib/gdb-7/include/elf/
H A Dexternal.h59 unsigned char e_phoff[4]; /* Program header table file offset */ member
76 unsigned char e_phoff[8]; /* Program header table file offset */ member
/dragonfly/contrib/binutils-2.27/include/elf/
H A Dexternal.h58 unsigned char e_phoff[4]; /* Program header table file offset */ member
75 unsigned char e_phoff[8]; /* Program header table file offset */ member
/dragonfly/contrib/binutils-2.34/include/elf/
H A Dexternal.h58 unsigned char e_phoff[4]; /* Program header table file offset */ member
75 unsigned char e_phoff[8]; /* Program header table file offset */ member
/dragonfly/contrib/binutils-2.34/binutils/
H A Delfedit.c113 = (Elf32_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
129 = (Elf64_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
456 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
489 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/dragonfly/contrib/binutils-2.27/binutils/
H A Delfedit.c248 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
281 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/dragonfly/sys/kern/
H A Dimgact_elf.c485 if ((hdr->e_phoff > PAGE_SIZE) || in __elfN()
486 (hdr->e_phentsize * hdr->e_phnum) > PAGE_SIZE - hdr->e_phoff) { in __elfN()
491 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN()
637 if ((hdr->e_phoff > PAGE_SIZE) || in __CONCAT()
638 (hdr->e_phoff + hdr->e_phentsize * hdr->e_phnum) > PAGE_SIZE) { in __CONCAT()
642 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __CONCAT()
749 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize in __CONCAT()
751 proghdr = phdr[i].p_vaddr + hdr->e_phoff + in __CONCAT()
1359 ehdr->e_phoff = phoff; in __elfN()
1677 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN()
/dragonfly/lib/libkvm/
H A Dkvm_x86_64.c121 p = (Elf_Phdr*)((char*)e + e->e_phoff); in _kvm_pa2off()
185 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; in _kvm_initvtop()
/dragonfly/sys/platform/pc64/x86_64/
H A Ddump_machdep.c296 ehdr.e_phoff = sizeof(ehdr); in md_dumpsys()
307 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in md_dumpsys()
/dragonfly/test/nvmm/demo/toyvirt/
H A Delf.c72 phdr = (Elf_Phdr *)((char *)ehdr + ehdr->e_phoff); in elf_parse()
/dragonfly/usr.bin/ldd/
H A Dldd.c134 lseek(fd, ehdr.e_phoff, SEEK_SET) == -1 in main()
/dragonfly/sys/sys/
H A Delf32.h61 Elf32_Off e_phoff; /* Program header file offset. */ member
H A Delf64.h76 Elf64_Off e_phoff; /* Program header file offset. */ member

123