Lines Matching refs:segment
53 ElfW(Phdr) *elf_pheader, *segment; in process_elf_file()
94 for (i = 0, segment = elf_pheader; in process_elf_file()
95 i < elf_header->e_phnum; i++, segment++) in process_elf_file()
97 check_ptr (segment); in process_elf_file()
99 switch (segment->p_type) in process_elf_file()
105 dynamic_addr = segment->p_offset; in process_elf_file()
106 dynamic_size = segment->p_filesz; in process_elf_file()
110 program_interpreter = (char *) (file_contents + segment->p_offset); in process_elf_file()
127 if (segment->p_align == (__ELF_NATIVE_CLASS / 8)) in process_elf_file()
130 + segment->p_offset); in process_elf_file()
131 const ElfW(Addr) size = segment->p_filesz; in process_elf_file()
132 const ElfW(Addr) align = segment->p_align; in process_elf_file()
219 for (i = 0, segment = elf_pheader; in process_elf_file()
220 i < elf_header->e_phnum; i++, segment++) in process_elf_file()
222 if (segment->p_type == PT_LOAD in process_elf_file()
223 && dyn_entry->d_un.d_val >= segment->p_vaddr in process_elf_file()
224 && (dyn_entry->d_un.d_val - segment->p_vaddr in process_elf_file()
225 < segment->p_filesz)) in process_elf_file()
227 loadoff = segment->p_vaddr - segment->p_offset; in process_elf_file()