Lines Matching refs:phdr
21 const Elf_Phdr *phdr; in kexec_file_add_kernel_elf() local
34 phdr = (void *)ehdr + ehdr->e_phoff; in kexec_file_add_kernel_elf()
35 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in kexec_file_add_kernel_elf()
36 if (phdr->p_type != PT_LOAD) in kexec_file_add_kernel_elf()
39 buf.buffer = kernel + phdr->p_offset; in kexec_file_add_kernel_elf()
40 buf.bufsz = phdr->p_filesz; in kexec_file_add_kernel_elf()
42 buf.mem = ALIGN(phdr->p_paddr, phdr->p_align); in kexec_file_add_kernel_elf()
45 buf.memsz = phdr->p_memsz; in kexec_file_add_kernel_elf()
46 data->memsz = ALIGN(data->memsz, phdr->p_align) + buf.memsz; in kexec_file_add_kernel_elf()
48 if (entry - phdr->p_paddr < phdr->p_memsz) { in kexec_file_add_kernel_elf()
72 const Elf_Phdr *phdr; in s390_elf_load() local
92 phdr = (void *)ehdr + ehdr->e_phoff; in s390_elf_load()
93 size = ALIGN(size, phdr->p_align); in s390_elf_load()
94 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in s390_elf_load()
95 if (phdr->p_type == PT_INTERP) in s390_elf_load()
98 if (phdr->p_offset > kernel_len) in s390_elf_load()
101 size += ALIGN(phdr->p_filesz, phdr->p_align); in s390_elf_load()