Searched refs:e_phoff (Results 1 - 25 of 40) sorted by relevance

12

/linux-master/arch/x86/um/
H A Delfcore.c21 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff);
48 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff);
69 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff);
/linux-master/arch/powerpc/boot/
H A Delf_util.c36 (unsigned long)elf64->e_phoff);
67 elf32ph = (Elf32_Phdr *) ((unsigned long)elf32 + elf32->e_phoff);
H A Delf.h61 Elf32_Off e_phoff; member in struct:elf32_hdr
78 Elf64_Off e_phoff; /* Program header table file offset */ member in struct:elf64_hdr
/linux-master/kernel/
H A Dkexec_elf.c78 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) {
88 if (ehdr->e_phoff + phdr_size < ehdr->e_phoff) {
91 } else if (ehdr->e_phoff + phdr_size > buf_len) {
163 ehdr->e_phoff = elf64_to_cpu(ehdr, buf_ehdr->e_phoff);
169 ehdr->e_phoff = elf32_to_cpu(ehdr, buf_ehdr->e_phoff);
212 pbuf = buf + elf_info->ehdr->e_phoff + (idx * sizeof(*buf_phdr));
308 if (ehdr->e_phoff >
[all...]
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c210 FAIL_IF(ehdr->e_phoff == 0 || ehdr->e_phnum == 0);
219 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff);
220 FAIL_IF(ehdr->e_phoff + phdr_size > core_size);
223 for (phdr = p + ehdr->e_phoff;
224 (void *) phdr < p + ehdr->e_phoff + phdr_size;
229 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size);
/linux-master/arch/s390/kernel/
H A Dkexec_elf.c34 phdr = (void *)ehdr + ehdr->e_phoff;
89 size = ehdr->e_ehsize + ehdr->e_phoff;
94 phdr = (void *)ehdr + ehdr->e_phoff;
/linux-master/tools/perf/util/
H A Dsymbol-minimal.c123 ehdr.e_phoff = bswap_32(ehdr.e_phoff);
133 fseek(fp, ehdr.e_phoff, SEEK_SET);
175 ehdr.e_phoff = bswap_64(ehdr.e_phoff);
185 fseek(fp, ehdr.e_phoff, SEEK_SET);
/linux-master/tools/testing/selftests/kvm/lib/
H A Delf.c133 * e_phoff - File offset to start of program headers
139 offset = hdr.e_phoff + (n1 * hdr.e_phentsize);
/linux-master/sound/pci/mixart/
H A Dmixart_hwdep.c68 __be32 e_phoff; member in struct:snd_mixart_elf32_ehdr
101 if( elf_header->e_phoff != 0 ) {
105 u32 pos = be32_to_cpu(elf_header->e_phoff) + (u32)(i * be16_to_cpu(elf_header->e_phentsize));
/linux-master/arch/sparc/vdso/
H A Dvdso2c.h25 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff));
/linux-master/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h60 ELF_GEN_FIELD_GET_SET(hdr, e_phoff, u64)
/linux-master/include/uapi/linux/
H A Delf.h215 Elf32_Off e_phoff; member in struct:elf32_hdr
232 Elf64_Off e_phoff; /* Program header table file offset */ member in struct:elf64_hdr
/linux-master/arch/mips/boot/
H A Delf2ecoff.c175 e->e_phoff = swab32(e->e_phoff);
329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff,
/linux-master/tools/testing/selftests/proc/
H A Dproc-pid-vm.c86 uint64_t e_phoff; member in struct:elf64_hdr
176 h.e_phoff = sizeof(struct elf64_hdr);
/linux-master/arch/s390/tools/
H A Drelocs.c136 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff);
/linux-master/tools/testing/selftests/vDSO/
H A Dparse_vdso.c87 ELF(Phdr) *pt = (ELF(Phdr)*)(vdso_info.load_addr + hdr->e_phoff);
/linux-master/arch/x86/entry/vdso/
H A Dvdso2c.h58 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff));
/linux-master/arch/alpha/boot/tools/
H A Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET);
/linux-master/arch/parisc/boot/compressed/
H A Dmisc.c262 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum);
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_fw_mips.c38 struct elf32_phdr *program_header = (struct elf32_phdr *)(fw + header->e_phoff);
/linux-master/fs/
H A Dbinfmt_elf.c531 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff);
1153 if (elf_ppnt->p_offset <= elf_ex->e_phoff &&
1154 elf_ex->e_phoff < elf_ppnt->p_offset + elf_ppnt->p_filesz) {
1155 phdr_addr = elf_ex->e_phoff - elf_ppnt->p_offset +
1353 retval = elf_read(file, eppnt, j, elf_ex.e_phoff);
1439 elf->e_phoff = sizeof(struct elfhdr);
H A Dbinfmt_elf_fdpic.c144 loff_t pos = params->hdr.e_phoff;
803 stop = params->hdr.e_phoff;
811 if (phdr->p_offset > params->hdr.e_phoff ||
823 params->hdr.e_phoff - phdr->p_offset;
1250 elf->e_phoff = sizeof(struct elfhdr);
/linux-master/arch/mips/boot/tools/
H A Drelocs.c228 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff);
/linux-master/tools/testing/selftests/sgx/
H A Dload.c230 phdr_tbl = encl->bin + ehdr->e_phoff;
/linux-master/arch/x86/boot/compressed/
H A Dmisc.c319 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum);

Completed in 209 milliseconds

12