Home | History | Annotate | Download | only in runtime

Lines Matching refs:program_header

677   uint8_t* program_header = GetProgramHeadersStart() + (i * GetHeader().e_phentsize);
678 if (program_header >= End()) {
681 return reinterpret_cast<Elf_Phdr*>(program_header);
687 Elf_Phdr* program_header = GetProgramHeader(i);
688 if (program_header->p_type == type) {
689 return program_header;
1027 Elf_Phdr* program_header = GetProgramHeader(i);
1028 if (program_header->p_type != PT_LOAD) {
1031 Elf_Addr begin_vaddr = program_header->p_vaddr;
1035 Elf_Addr end_vaddr = program_header->p_vaddr + program_header->p_memsz;
1039 << program_header->p_vaddr << "+0x" << program_header->p_memsz << "=0x" << end_vaddr
1082 Elf_Phdr* program_header = GetProgramHeader(i);
1083 if (program_header == nullptr) {
1090 if (program_header->p_type == PT_DYNAMIC) {
1091 dynamic_program_header_ = program_header;
1096 if (program_header->p_type != PT_LOAD) {
1118 uint8_t* reserve_base = reinterpret_cast<uint8_t*>(program_header->p_vaddr);
1156 if (program_header->p_memsz == 0) {
1159 uint8_t* p_vaddr = base_address_ + program_header->p_vaddr;
1161 if (executable && ((program_header->p_flags & PF_X) != 0)) {
1164 if ((program_header->p_flags & PF_W) != 0) {
1167 if ((program_header->p_flags & PF_R) != 0) {
1177 if (program_header->p_filesz > program_header->p_memsz) {
1179 static_cast<uint64_t>(program_header->p_filesz),
1180 static_cast<uint64_t>(program_header->p_memsz),
1184 if (program_header->p_filesz < program_header->p_memsz &&
1185 !IsAligned<kPageSize>(program_header->p_filesz)) {
1188 static_cast<uint64_t>(program_header->p_filesz),
1189 static_cast<uint64_t>(program_header->p_memsz),
1193 if (file_length < (program_header->p_offset + program_header->p_filesz)) {
1196 static_cast<uint64_t>(program_header->p_offset + program_header->p_filesz),
1200 if (program_header->p_filesz != 0u) {
1203 program_header->p_filesz,
1207 program_header->p_offset,
1225 if (program_header->p_filesz < program_header->p_memsz) {
1230 p_vaddr + program_header->p_filesz,
1231 program_header->p_memsz - program_header->p_filesz,