/freebsd/libexec/rtld-elf/ |
H A D | map_object.c | 51 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <= page_size); in phdr_in_zero_page() 292 if (phdr_vaddr == 0 && data_offset <= hdr->e_phoff && in map_object() 294 hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr)) { in map_object() 295 phdr_vaddr = data_vaddr + hdr->e_phoff - data_offset; in map_object() 321 memcpy(__DECONST(char *, obj->phdr), (char *)hdr + hdr->e_phoff, in map_object() 421 phdr = (Elf_Phdr *)((char *)hdr + hdr->e_phoff); in get_elf_header() 424 MAP_PRIVATE | MAP_PREFAULT_READ, fd, hdr->e_phoff); in get_elf_header()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A 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()
|
H A D | libelf_phdr.c | 70 phoff = (uint64_t) eh32->e_phoff; in _libelf_getphdr() 73 phoff = (uint64_t) eh64->e_phoff; in _libelf_getphdr()
|
H A D | elf_update.c | 539 phoff = (off_t) eh32->e_phoff; in _libelf_resync_elf() 545 phoff = (off_t) eh64->e_phoff; in _libelf_resync_elf() 703 eh32->e_phoff = (uint32_t) phoff; in _libelf_resync_elf() 706 eh64->e_phoff = (uint64_t) phoff; in _libelf_resync_elf() 914 phoff = (uint64_t) eh32->e_phoff; in _libelf_write_phdr() 917 phoff = eh64->e_phoff; in _libelf_write_phdr()
|
H A D | elf_types.m4 | 107 `e_phoff, OFF', 124 `e_phoff, OFF',
|
/freebsd/contrib/file/src/ |
H A D | elfclass.h | 44 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum, 59 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
|
H A D | readelf.h | 98 Elf32_Off e_phoff; member 115 Elf64_Off e_phoff; member
|
/freebsd/lib/libkvm/ |
H A D | kvm_powerpc.c | 122 be32toh(vm->eh->e_phoff); in powerpc_maphdrs() 133 vm->ph = (void *)((uintptr_t)vm->eh + be32toh(vm->eh->e_phoff)); in powerpc_maphdrs()
|
H A D | kvm_powerpc64.c | 124 _kvm16toh(kd, vm->eh->e_phnum) + _kvm64toh(kd, vm->eh->e_phoff); in powerpc_maphdrs() 136 (uintptr_t)_kvm64toh(kd, vm->eh->e_phoff)); in powerpc_maphdrs()
|
/freebsd/sys/kern/ |
H A D | kern_dump.c | 315 ehdr.e_phoff = sizeof(ehdr); in dumpsys_generic() 327 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys_generic()
|
H A D | imgact_elf.c | 483 return (hdr->e_phoff <= PAGE_SIZE && in __elfN() 484 (u_int)hdr->e_phentsize * hdr->e_phnum <= PAGE_SIZE - hdr->e_phoff); in __elfN() 855 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN() 1137 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __CONCAT() 1197 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize <= in __CONCAT() 1199 proghdr = phdr[i].p_vaddr + hdr->e_phoff; in __CONCAT() 1933 ehdr->e_phoff = sizeof(Elf_Ehdr); in __elfN() 1946 ehdr->e_shoff = ehdr->e_phoff + in __elfN() 1973 phdr = (Elf_Phdr *)((char *)hdr + ehdr->e_phoff); in __elfN() 2867 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN()
|
H A D | link_elf.c | 809 phdr = (Elf_Phdr *)(ef->address + hdr->e_phoff); in preload_protect() 1067 (hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= PAGE_SIZE) && in link_elf_load_file() 1068 (hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= nbytes))) in link_elf_load_file() 1077 phdr = (Elf_Phdr *) (firstpage + hdr->e_phoff); in link_elf_load_file()
|
/freebsd/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
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 59 elf_off e_phoff; ///< File offset of program header table. member
|
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 149 dst->e_phoff = (Elf64_Off)src->e_phoff; in ehdr_to_gelf()
|
/freebsd/usr.bin/gcore/ |
H A D | elfcore.c | 497 ehdr->e_phoff = sizeof(Elf_Ehdr); in elf_puthdr() 510 ehdr->e_shoff = ehdr->e_phoff + in elf_puthdr() 534 phdr = (Elf_Phdr *)((char *)hdr + ehdr->e_phoff); in elf_puthdr()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingPlatformLinux.c | 183 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()
|
/freebsd/sys/arm64/arm64/ |
H A D | elf_machdep.c | 364 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in arm64_exec_protect()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | ELF.h | 68 Elf32_Off e_phoff; // Program header table's file offset, in bytes member 94 Elf64_Off e_phoff; member
|
/freebsd/stand/common/ |
H A D | load_elf.c | 143 CONVERT_FIELD(b, e_phoff, e); \ in elf_header_convert() 628 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { 633 phdr = (Elf_Phdr *)(ef->firstpage + ehdr->e_phoff);
|
/freebsd/stand/i386/isoboot/ |
H A D | isoboot.c | 380 fs_off = hdr.eh.e_phoff; in load()
|
/freebsd/stand/i386/boot2/ |
H A D | boot2.c | 311 fs_off = hdr.eh.e_phoff; in load()
|
/freebsd/sys/dev/ksyms/ |
H A D | ksyms.c | 292 hdr->kh_ehdr.e_phoff = offsetof(struct ksyms_hdr, kh_txtphdr); in ksyms_snapshot()
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | main.c | 433 oeh.e_phoff = gelf_fsize(ecp->eout, ELF_T_EHDR, 1, EV_CURRENT); in create_elf() 434 if (oeh.e_phoff == 0) in create_elf()
|