Home
last modified time | relevance | path

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

12

/Linux-v4.19/arch/ia64/hp/sim/boot/
Dbootloader.c66 unsigned long e_entry, e_phoff, e_phnum; in start_bootloader() local
130 e_phoff = elf->e_phoff; in start_bootloader()
139 ssc(fd, 1, (long) &req, e_phoff, SSC_READ); in start_bootloader()
145 e_phoff += sizeof(*elf_phdr); in start_bootloader()
/Linux-v4.19/arch/ia64/kernel/
Delfcore.c18 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_write_extra_phdrs()
47 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_write_extra_data()
66 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_extra_data_size()
/Linux-v4.19/arch/x86/um/
Delfcore.c21 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_phdrs()
48 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_data()
69 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_extra_data_size()
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c210 FAIL_IF(ehdr->e_phoff == 0 || ehdr->e_phnum == 0); in check_core_file()
219 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file()
220 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file()
223 for (phdr = p + ehdr->e_phoff; in check_core_file()
224 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file()
229 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()
/Linux-v4.19/tools/perf/util/
Dsymbol-minimal.c118 ehdr.e_phoff = bswap_32(ehdr.e_phoff); in filename__read_build_id()
128 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
169 ehdr.e_phoff = bswap_64(ehdr.e_phoff); in filename__read_build_id()
179 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
/Linux-v4.19/arch/s390/kernel/
Dkexec_elf.c27 phdr = (void *)ehdr + ehdr->e_phoff; in kexec_file_add_elf_kernel()
84 size = ehdr->e_ehsize + ehdr->e_phoff; in s390_elf_load()
89 phdr = (void *)ehdr + ehdr->e_phoff; in s390_elf_load()
/Linux-v4.19/arch/powerpc/kernel/
Dkexec_elf_64.c108 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { in elf_is_ehdr_sane()
118 if (ehdr->e_phoff + phdr_size < ehdr->e_phoff) { in elf_is_ehdr_sane()
121 } else if (ehdr->e_phoff + phdr_size > buf_len) { in elf_is_ehdr_sane()
184 ehdr->e_phoff = elf_addr_to_cpu(ehdr, buf_ehdr->e_phoff); in elf_read_ehdr()
225 pbuf = buf + elf_info->ehdr->e_phoff + (idx * sizeof(*buf_phdr)); in elf_read_phdr()
433 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { in elf_read_from_buffer()
/Linux-v4.19/arch/powerpc/boot/
Delf_util.c40 (unsigned long)elf64->e_phoff); in parse_elf64()
71 elf32ph = (Elf32_Phdr *) ((unsigned long)elf32 + elf32->e_phoff); in parse_elf32()
Delf.h61 Elf32_Off e_phoff; member
78 Elf64_Off e_phoff; /* Program header table file offset */ member
/Linux-v4.19/drivers/remoteproc/
Dremoteproc_elf_loader.c93 if (ehdr->e_phoff > fw->size) {
154 phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff);
Dremoteproc_core.c1168 ehdr->e_phoff = sizeof(*ehdr); in rproc_coredump()
1173 phdr = data + ehdr->e_phoff; in rproc_coredump()
1174 offset = ehdr->e_phoff + sizeof(*phdr) * ehdr->e_phnum; in rproc_coredump()
/Linux-v4.19/sound/pci/mixart/
Dmixart_hwdep.c80 __be32 e_phoff; member
113 if( elf_header->e_phoff != 0 ) { in mixart_load_elf()
117 u32 pos = be32_to_cpu(elf_header->e_phoff) + (u32)(i * be16_to_cpu(elf_header->e_phentsize)); in mixart_load_elf()
/Linux-v4.19/include/uapi/linux/
Delf.h210 Elf32_Off e_phoff; member
227 Elf64_Off e_phoff; /* Program header table file offset */ member
/Linux-v4.19/tools/testing/selftests/kvm/lib/
Delf.c141 offset = hdr.e_phoff + (n1 * hdr.e_phentsize); in kvm_vm_elf_load()
/Linux-v4.19/arch/mips/boot/
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-v4.19/arch/sparc/vdso/
Dvdso2c.h26 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff)); in BITSFUNC()
/Linux-v4.19/arch/x86/entry/vdso/
Dvdso2c.h24 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff)); in BITSFUNC()
/Linux-v4.19/tools/testing/selftests/vDSO/
Dparse_vdso.c109 ELF(Phdr) *pt = (ELF(Phdr)*)(vdso_info.load_addr + hdr->e_phoff); in vdso_init_from_sysinfo_ehdr()
/Linux-v4.19/arch/powerpc/oprofile/cell/
Dvma_map.c153 phdr_start = spu_elf_start + ehdr.e_phoff; in create_vma_map()
/Linux-v4.19/arch/alpha/boot/tools/
Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
/Linux-v4.19/fs/
Dbinfmt_elf_fdpic.c148 loff_t pos = params->hdr.e_phoff; in elf_fdpic_fetch_phdrs()
802 stop = params->hdr.e_phoff; in elf_fdpic_map_file()
810 if (phdr->p_offset > params->hdr.e_phoff || in elf_fdpic_map_file()
822 params->hdr.e_phoff - phdr->p_offset; in elf_fdpic_map_file()
1307 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header()
Dbinfmt_elf.c250 NEW_AUX_ENT(AT_PHDR, load_addr + exec->e_phoff); in create_elf_tables()
422 loff_t pos = elf_ex->e_phoff; in load_elf_phdrs()
1230 pos = elf_ex.e_phoff; in load_elf_library()
1459 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
/Linux-v4.19/arch/x86/boot/compressed/
Dmisc.c296 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
/Linux-v4.19/arch/mips/boot/tools/
Drelocs.c228 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()
/Linux-v4.19/arch/x86/tools/
Drelocs.c358 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()

12