Searched refs:phdr (Results 1 – 5 of 5) sorted by relevance
/system/core/libunwindstack/tests/ |
D | ElfInterfaceTest.cpp | 182 Phdr phdr = {}; in SinglePtLoad() local 183 phdr.p_type = PT_LOAD; in SinglePtLoad() 184 phdr.p_vaddr = 0x2000; in SinglePtLoad() 185 phdr.p_memsz = 0x10000; in SinglePtLoad() 186 phdr.p_flags = PF_R | PF_X; in SinglePtLoad() 187 phdr.p_align = 0x1000; in SinglePtLoad() 188 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad() 220 Phdr phdr = {}; in MultipleExecutablePtLoads() local 221 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads() 222 phdr.p_vaddr = 0x2000; in MultipleExecutablePtLoads() [all …]
|
D | MapInfoGetLoadBiasTest.cpp | 139 Elf32_Phdr phdr; in InitElfData() local 140 memset(&phdr, 0, sizeof(phdr)); in InitElfData() 141 phdr.p_type = PT_NULL; in InitElfData() 142 memory->SetMemory(offset + 0x5000, &phdr, sizeof(phdr)); in InitElfData() 143 phdr.p_type = PT_LOAD; in InitElfData() 144 phdr.p_flags = PF_X; in InitElfData() 145 phdr.p_offset = 0; in InitElfData() 146 phdr.p_vaddr = 0xe000; in InitElfData() 147 memory->SetMemory(offset + 0x5000 + sizeof(phdr), &phdr, sizeof(phdr)); in InitElfData()
|
D | ElfTest.cpp | 62 Elf32_Phdr phdr; in InitElf32() local 63 memset(&phdr, 0, sizeof(phdr)); in InitElf32() 64 phdr.p_type = PT_LOAD; in InitElf32() 65 phdr.p_filesz = 0x10000; in InitElf32() 66 phdr.p_memsz = 0x10000; in InitElf32() 67 phdr.p_flags = PF_R | PF_X; in InitElf32() 68 phdr.p_align = 0x1000; in InitElf32() 69 memory_->SetMemory(0x100, &phdr, sizeof(phdr)); in InitElf32() 72 memset(&phdr, 0, sizeof(phdr)); in InitElf32() 73 phdr.p_type = PT_ARM_EXIDX; in InitElf32() [all …]
|
/system/core/libunwindstack/ |
D | ElfInterface.cpp | 213 PhdrType phdr; in GetLoadBias() local 214 if (!memory->ReadFully(offset, &phdr, sizeof(phdr))) { in GetLoadBias() 219 if (phdr.p_type == PT_LOAD && (phdr.p_flags & PF_X)) { in GetLoadBias() 220 return static_cast<uint64_t>(phdr.p_vaddr) - phdr.p_offset; in GetLoadBias() 231 PhdrType phdr; in ReadProgramHeaders() local 232 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders() 236 switch (phdr.p_type) { in ReadProgramHeaders() 239 if ((phdr.p_flags & PF_X) == 0) { in ReadProgramHeaders() 243 pt_loads_[phdr.p_offset] = LoadInfo{phdr.p_offset, phdr.p_vaddr, in ReadProgramHeaders() 244 static_cast<size_t>(phdr.p_memsz)}; in ReadProgramHeaders() [all …]
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 332 auto& phdr = program_headers[i]; in GetProgramHeader() local 333 segments[i].vaddr = phdr.p_vaddr; in GetProgramHeader() 334 segments[i].file_offset = phdr.p_offset; in GetProgramHeader() 335 segments[i].file_size = phdr.p_filesz; in GetProgramHeader() 337 (phdr.p_type == llvm::ELF::PT_LOAD) && (phdr.p_flags & llvm::ELF::PF_X); in GetProgramHeader()
|