Home
last modified time | relevance | path

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

12

/linux/tools/perf/util/
H A Dsymbol-minimal.c134 hdrs.ehdr32.e_phoff = bswap_32(hdrs.ehdr32.e_phoff); in filename__read_build_id()
138 hdrs.ehdr64.e_phoff = bswap_64(hdrs.ehdr64.e_phoff); in filename__read_build_id()
153 lseek(fd, elf32 ? hdrs.ehdr32.e_phoff : hdrs.ehdr64.e_phoff, SEEK_SET); in filename__read_build_id()
/linux/arch/s390/kernel/
H A Dkexec_elf.c34 phdr = (void *)ehdr + ehdr->e_phoff; in kexec_file_add_kernel_elf()
89 size = ehdr->e_ehsize + ehdr->e_phoff; in s390_elf_load()
94 phdr = (void *)ehdr + ehdr->e_phoff; in s390_elf_load()
H A Dcrash_dump.c459 ehdr->e_phoff = sizeof(Elf64_Ehdr); in ehdr_init()
/linux/Documentation/userspace-api/
H A DELF.rst11 e_phoff.
14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
/linux/arch/powerpc/boot/
H A Delf_util.c36 (unsigned long)elf64->e_phoff); in parse_elf64()
67 elf32ph = (Elf32_Phdr *) ((unsigned long)elf32 + elf32->e_phoff); in parse_elf32()
H A Delf.h61 Elf32_Off e_phoff; member
78 Elf64_Off e_phoff; /* Program header table file offset */ member
/linux/sound/pci/mixart/
H A Dmixart_hwdep.c68 __be32 e_phoff; member
101 if( elf_header->e_phoff != 0 ) { in mixart_load_elf()
105 u32 pos = be32_to_cpu(elf_header->e_phoff) + (u32)(i * be16_to_cpu(elf_header->e_phentsize)); in mixart_load_elf()
/linux/lib/
H A Dbuildid.c218 phoff = READ_ONCE(ehdr->e_phoff); in get_build_id_32()
255 phoff = READ_ONCE(ehdr->e_phoff); in get_build_id_64()
/linux/arch/mips/boot/
H A Delf2ecoff.c175 e->e_phoff = swab32(e->e_phoff); in convert_elf_hdr()
329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
/linux/tools/testing/selftests/kvm/lib/
H A Delf.c139 offset = hdr.e_phoff + (n1 * hdr.e_phentsize); in kvm_vm_elf_load()
/linux/arch/s390/tools/
H A Drelocs.c136 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()
/linux/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h60 ELF_GEN_FIELD_GET_SET(hdr, e_phoff, u64) in ELF_GEN_FIELD_GET_SET()
/linux/arch/sparc/vdso/
H A Dvdso2c.h25 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff)); in BITSFUNC()
/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c91 uint64_t e_phoff; member
181 h.e_phoff = sizeof(struct elf64_hdr); in make_exe()
/linux/fs/
H A Dbinfmt_elf_fdpic.c144 loff_t pos = params->hdr.e_phoff; in elf_fdpic_fetch_phdrs()
811 stop = params->hdr.e_phoff; in elf_fdpic_map_file()
819 if (phdr->p_offset > params->hdr.e_phoff || in elf_fdpic_map_file()
831 params->hdr.e_phoff - phdr->p_offset; in elf_fdpic_map_file()
1259 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header()
H A Dbinfmt_elf.c546 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff); in load_elf_phdrs()
1210 if (elf_ppnt->p_offset <= elf_ex->e_phoff && in load_elf_binary()
1211 elf_ex->e_phoff < elf_ppnt->p_offset + elf_ppnt->p_filesz) { in load_elf_binary()
1212 phdr_addr = elf_ex->e_phoff - elf_ppnt->p_offset + in load_elf_binary()
1452 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
/linux/arch/alpha/boot/tools/
H A Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
/linux/tools/testing/selftests/vDSO/
H A Dparse_vdso.c111 ELF(Phdr) *pt = (ELF(Phdr)*)(vdso_info.load_addr + hdr->e_phoff); in vdso_init_from_sysinfo_ehdr()
/linux/arch/mips/boot/tools/
H A Drelocs.c229 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()
/linux/arch/x86/boot/compressed/
H A Dmisc.c306 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
/linux/tools/testing/selftests/sgx/
H A Dload.c230 phdr_tbl = encl->bin + ehdr->e_phoff; in encl_load()
/linux/arch/x86/tools/
H A Drelocs.c364 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()
/linux/kernel/
H A Dcrash_core.c218 ehdr->e_phoff = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
/linux/arch/powerpc/platforms/powernv/
H A Dopal-core.c369 elf->e_phoff = cpu_to_be64(sizeof(Elf64_Ehdr)); in create_opalcore()
/linux/fs/proc/
H A Dkcore.c364 .e_phoff = sizeof(struct elfhdr), in read_kcore_iter()

12