| /freebsd-9-stable/libexec/rtld-elf/ |
| D | map_object.c | 100 phdr = (Elf_Phdr *) ((char *)hdr + hdr->e_phoff); in map_object() 246 if (phdr_vaddr == 0 && data_offset <= hdr->e_phoff && in map_object() 248 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) { in map_object() 249 phdr_vaddr = data_vaddr + hdr->e_phoff - data_offset; in map_object() 276 memcpy((char *)obj->phdr, (char *)hdr + hdr->e_phoff, phsize); in map_object() 351 if (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) > in get_elf_header()
|
| /freebsd-9-stable/lib/libelf/ |
| D | gelf_ehdr.c | 73 d->e_phoff = eh32->e_phoff; in gelf_getehdr() 156 LIBELF_COPY_U32(eh32, s, e_phoff); in gelf_update_ehdr()
|
| D | libelf_phdr.c | 74 phoff = (uint64_t) eh32->e_phoff; in _libelf_getphdr() 78 phoff = (uint64_t) eh64->e_phoff; in _libelf_getphdr()
|
| D | elf_update.c | 430 phoff = (uint64_t) eh32->e_phoff; in _libelf_resync_elf() 437 phoff = eh64->e_phoff; in _libelf_resync_elf() 571 eh32->e_phoff = (uint32_t) phoff; in _libelf_resync_elf() 574 eh64->e_phoff = (uint64_t) phoff; in _libelf_resync_elf() 738 phoff = (uint64_t) eh32->e_phoff; in _libelf_write_elf() 744 phoff = eh64->e_phoff; in _libelf_write_elf()
|
| /freebsd-9-stable/contrib/file/src/ |
| D | elfclass.h | 44 (off_t)elf_getu(swap, elfhdr.e_phoff), phnum, 59 (off_t)elf_getu(swap, elfhdr.e_phoff), phnum,
|
| D | readelf.h | 98 Elf32_Off e_phoff; member 115 Elf64_Off e_phoff; member
|
| /freebsd-9-stable/contrib/binutils/include/elf/ |
| D | external.h | 46 unsigned char e_phoff[4]; /* Program header table file offset */ member 63 unsigned char e_phoff[8]; /* Program header table file offset */ member
|
| /freebsd-9-stable/contrib/binutils/bfd/ |
| D | elfcore.h | 176 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p() 185 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
|
| D | elfcode.h | 242 dst->e_phoff = H_GET_WORD (abfd, src->e_phoff); in elf_swap_ehdr_in() 272 H_PUT_WORD (abfd, src->e_phoff, dst->e_phoff); in elf_swap_ehdr_out() 828 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_object_p() 1548 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file() 1650 err = target_read_memory (ehdr_vma + i_ehdr.e_phoff, (bfd_byte *) x_phdrs, in NAME()
|
| /freebsd-9-stable/lib/libkvm/ |
| D | kvm_powerpc.c | 126 be32toh(vm->eh->e_phoff); in powerpc_maphdrs() 137 vm->ph = (void *)((uintptr_t)vm->eh + be32toh(vm->eh->e_phoff)); in powerpc_maphdrs()
|
| D | kvm_powerpc64.c | 126 be64toh(vm->eh->e_phoff); in powerpc_maphdrs() 137 vm->ph = (void *)((uintptr_t)vm->eh + be64toh(vm->eh->e_phoff)); in powerpc_maphdrs()
|
| D | kvm_arm.c | 96 Elf32_Phdr *p = (Elf32_Phdr*)((char*)e + e->e_phoff); in _kvm_pa2off() 154 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; in _kvm_initvtop()
|
| D | kvm_ia64.c | 100 Elf64_Phdr *p = (Elf64_Phdr*)((char*)e + e->e_phoff); in _kvm_pa2off() 169 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; in _kvm_initvtop()
|
| D | kvm_amd64.c | 122 p = (Elf_Phdr*)((char*)e + e->e_phoff); in _kvm_pa2off() 174 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; in _kvm_initvtop()
|
| D | kvm_i386.c | 128 p = (Elf_Phdr*)((char*)e + e->e_phoff); in _kvm_pa2off() 181 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; in _kvm_initvtop()
|
| /freebsd-9-stable/sys/ia64/ia64/ |
| D | dump_machdep.c | 231 ehdr.e_phoff = sizeof(ehdr); in dumpsys() 240 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys()
|
| /freebsd-9-stable/usr.bin/ldd/ |
| D | ldd.c | 317 if (lseek(fd, hdr.elf32.e_phoff, SEEK_SET) == -1) { in is_executable() 359 if (lseek(fd, hdr.elf.e_phoff, SEEK_SET) == -1) { in is_executable()
|
| /freebsd-9-stable/sys/powerpc/powerpc/ |
| D | dump_machdep.c | 231 ehdr.e_phoff = sizeof(ehdr); in dumpsys() 239 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys()
|
| /freebsd-9-stable/sys/mips/mips/ |
| D | dump_machdep.c | 290 ehdr.e_phoff = sizeof(ehdr); in dumpsys() 301 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys()
|
| /freebsd-9-stable/sys/kern/ |
| D | imgact_elf.c | 670 if ((hdr->e_phoff > PAGE_SIZE) || in __elfN() 671 (u_int)hdr->e_phentsize * hdr->e_phnum > PAGE_SIZE - hdr->e_phoff) { in __elfN() 676 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN() 752 if ((hdr->e_phoff > PAGE_SIZE) || in __CONCAT() 753 (u_int)hdr->e_phentsize * hdr->e_phnum > PAGE_SIZE - hdr->e_phoff) { in __CONCAT() 757 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __CONCAT() 849 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize in __CONCAT() 851 proghdr = phdr[i].p_vaddr + hdr->e_phoff + in __CONCAT() 1533 ehdr->e_phoff = sizeof(Elf_Ehdr); in __elfN() 2035 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN()
|
| /freebsd-9-stable/sys/arm/arm/ |
| D | dump_machdep.c | 298 ehdr.e_phoff = sizeof(ehdr); in dumpsys() 309 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys()
|
| /freebsd-9-stable/sys/x86/x86/ |
| D | dump_machdep.c | 298 ehdr.e_phoff = sizeof(ehdr); in dumpsys() 309 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys()
|
| /freebsd-9-stable/lib/libc/ia64/gen/ |
| D | unwind.c | 80 p = (char*)info.dli_fbase + ehdr->e_phoff; in _Unwind_FindTableEntry()
|
| /freebsd-9-stable/sys/xen/interface/ |
| D | elfstructs.h | 116 Elf32_Off e_phoff; /* program header table offset */ member 134 Elf64_Off e_phoff; /* Program hdr offset */ member
|
| /freebsd-9-stable/sys/sys/ |
| D | elf32.h | 61 Elf32_Off e_phoff; /* Program header file offset. */ member
|