| /freebsd/libexec/rtld-elf/ |
| H A D | map_object.c | 48 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <= page_size); in phdr_in_zero_page() 293 if (phdr_vaddr == 0 && data_offset <= hdr->e_phoff && in map_object() 295 hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr)) { in map_object() 296 phdr_vaddr = data_vaddr + hdr->e_phoff - data_offset; in map_object() 322 memcpy(__DECONST(char *, obj->phdr), (char *)hdr + hdr->e_phoff, in map_object() 426 phdr = (Elf_Phdr *)((char *)hdr + hdr->e_phoff); in get_elf_header() 429 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 | imgact_elf.c | 493 return (hdr->e_phoff <= PAGE_SIZE && in __elfN() 494 (u_int)hdr->e_phentsize * hdr->e_phnum <= PAGE_SIZE - hdr->e_phoff); in __elfN() 867 aligned(imgp->image_header + hdr->e_phoff, Elf_Addr)) { in __elfN() 868 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __elfN() 875 hdr->e_phnum * sizeof(Elf_Phdr), hdr->e_phoff, in __elfN() 1161 if (hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize < hdr->e_phoff) { in __CONCAT() 1171 aligned(imgp->image_header + hdr->e_phoff, Elf_Addr)) { in __CONCAT() 1172 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in __CONCAT() 1179 hdr->e_phnum * sizeof(Elf_Phdr), hdr->e_phoff, in __CONCAT() 1231 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize <= in __CONCAT() [all …]
|
| H A D | kern_dump.c | 316 ehdr.e_phoff = sizeof(ehdr); in dumpsys_generic() 328 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys_generic()
|
| H A D | link_elf.c | 815 phdr = (Elf_Phdr *)(ef->address + hdr->e_phoff); in preload_protect1() 1088 (hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= PAGE_SIZE) && in link_elf_load_file() 1089 (hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= nbytes))) { in link_elf_load_file() 1101 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 | 196 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()
|
| /freebsd/stand/kboot/libkboot/ |
| H A D | dfk.c | 238 phdr = (Elf64_Phdr *)(ef.buf + hdr->e_phoff); in read_at_address()
|
| /freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/ |
| H A D | vdso.cpp | 218 reinterpret_cast<ElfW(Phdr) *>(vdso_ehdr_addr + vdso_ehdr->e_phoff); in initialize_vdso_global_cache()
|
| /freebsd/sys/arm64/arm64/ |
| H A D | elf_machdep.c | 382 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in arm64_exec_protect()
|
| /freebsd/stand/common/ |
| H A D | load_elf.c | 140 CONVERT_FIELD(b, e_phoff, e); \ in elf_header_convert() 624 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { 629 phdr = (Elf_Phdr *)(ef->firstpage + ehdr->e_phoff);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | ELF.h | 70 Elf32_Off e_phoff; // Program header table's file offset, in bytes member 96 Elf64_Off e_phoff; member
|
| /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()
|