Lines Matching refs:phdr
21 const Elf_Phdr *phdr;
34 phdr = (void *)ehdr + ehdr->e_phoff;
35 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
36 if (phdr->p_type != PT_LOAD)
39 buf.buffer = kernel + phdr->p_offset;
40 buf.bufsz = phdr->p_filesz;
42 buf.mem = ALIGN(phdr->p_paddr, phdr->p_align);
47 buf.memsz = phdr->p_memsz;
48 data->memsz = ALIGN(data->memsz, phdr->p_align) + buf.memsz;
50 if (entry - phdr->p_paddr < phdr->p_memsz) {
74 const Elf_Phdr *phdr;
94 phdr = (void *)ehdr + ehdr->e_phoff;
95 size = ALIGN(size, phdr->p_align);
96 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
97 if (phdr->p_type == PT_INTERP)
100 if (phdr->p_offset > kernel_len)
103 size += ALIGN(phdr->p_filesz, phdr->p_align);