Home
last modified time | relevance | path

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

12

/freebsd/libexec/rtld-elf/
H A Dmap_object.c48 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 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.c70 phoff = (uint64_t) eh32->e_phoff; in _libelf_getphdr()
73 phoff = (uint64_t) eh64->e_phoff; in _libelf_getphdr()
H A Delf_update.c539 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 Delf_types.m4107 `e_phoff, OFF',
124 `e_phoff, OFF',
/freebsd/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
/freebsd/lib/libkvm/
H A Dkvm_powerpc.c122 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 Dkvm_powerpc64.c124 _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 Dimgact_elf.c493 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 Dkern_dump.c316 ehdr.e_phoff = sizeof(ehdr); in dumpsys_generic()
328 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys_generic()
H A Dlink_elf.c815 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 Delf32.h61 Elf32_Off e_phoff; /* Program header file offset. */ member
H A Delf64.h70 Elf64_Off e_phoff; /* Program header file offset. */ member
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h59 elf_off e_phoff; ///< File offset of program header table. member
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c149 dst->e_phoff = (Elf64_Off)src->e_phoff; in ehdr_to_gelf()
/freebsd/usr.bin/gcore/
H A Delfcore.c497 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 DInstrProfilingPlatformLinux.c196 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()
/freebsd/stand/kboot/libkboot/
H A Ddfk.c238 phdr = (Elf64_Phdr *)(ef.buf + hdr->e_phoff); in read_at_address()
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/
H A Dvdso.cpp218 reinterpret_cast<ElfW(Phdr) *>(vdso_ehdr_addr + vdso_ehdr->e_phoff); in initialize_vdso_global_cache()
/freebsd/sys/arm64/arm64/
H A Delf_machdep.c382 phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff); in arm64_exec_protect()
/freebsd/stand/common/
H A Dload_elf.c140 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 DELF.h70 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 Disoboot.c380 fs_off = hdr.eh.e_phoff; in load()
/freebsd/stand/i386/boot2/
H A Dboot2.c311 fs_off = hdr.eh.e_phoff; in load()

12