Lines Matching refs:program_header
704 byte* program_header = GetProgramHeadersStart() + (i * GetHeader().e_phentsize); in GetProgramHeader() local
705 if (program_header >= End()) { in GetProgramHeader()
708 return reinterpret_cast<Elf32_Phdr*>(program_header); in GetProgramHeader()
713 Elf32_Phdr* program_header = GetProgramHeader(i); in FindProgamHeaderByType() local
714 if (program_header->p_type == type) { in FindProgamHeaderByType()
715 return program_header; in FindProgamHeaderByType()
1022 Elf32_Phdr* program_header = GetProgramHeader(i); in GetLoadedSize() local
1023 if (program_header->p_type != PT_LOAD) { in GetLoadedSize()
1026 Elf32_Addr begin_vaddr = program_header->p_vaddr; in GetLoadedSize()
1030 Elf32_Addr end_vaddr = program_header->p_vaddr + program_header->p_memsz; in GetLoadedSize()
1080 Elf32_Phdr* program_header = GetProgramHeader(i); in Load() local
1081 if (program_header == nullptr) { in Load()
1088 if (program_header->p_type == PT_DYNAMIC) { in Load()
1089 dynamic_program_header_ = program_header; in Load()
1094 if (program_header->p_type != PT_LOAD) { in Load()
1116 uint8_t* reserve_base = reinterpret_cast<uint8_t*>(program_header->p_vaddr); in Load()
1146 if (program_header->p_memsz == 0) { in Load()
1149 byte* p_vaddr = base_address_ + program_header->p_vaddr; in Load()
1151 if (executable && ((program_header->p_flags & PF_X) != 0)) { in Load()
1154 if ((program_header->p_flags & PF_W) != 0) { in Load()
1157 if ((program_header->p_flags & PF_R) != 0) { in Load()
1167 if (file_length < (program_header->p_offset + program_header->p_memsz)) { in Load()
1170 program_header->p_offset + program_header->p_memsz, in Load()
1175 program_header->p_memsz, in Load()
1177 program_header->p_offset, in Load()