Searched refs:phdr (Results 1 – 4 of 4) sorted by relevance
/system/core/libunwindstack/tests/ |
D | ElfInterfaceTest.cpp | 161 Phdr phdr = {}; in SinglePtLoad() local 162 phdr.p_type = PT_LOAD; in SinglePtLoad() 163 phdr.p_vaddr = 0x2000; in SinglePtLoad() 164 phdr.p_memsz = 0x10000; in SinglePtLoad() 165 phdr.p_flags = PF_R | PF_X; in SinglePtLoad() 166 phdr.p_align = 0x1000; in SinglePtLoad() 167 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad() 199 Phdr phdr = {}; in MultipleExecutablePtLoads() local 200 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads() 201 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_offset = 0; in InitElfData() 145 phdr.p_vaddr = 0xe000; in InitElfData() 146 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 | 186 PhdrType phdr; in GetLoadBias() local 187 if (!memory->ReadFully(offset, &phdr, sizeof(phdr))) { in GetLoadBias() 190 if (phdr.p_type == PT_LOAD && phdr.p_offset == 0) { in GetLoadBias() 191 return phdr.p_vaddr; in GetLoadBias() 201 PhdrType phdr; in ReadProgramHeaders() local 202 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders() 206 switch (phdr.p_type) { in ReadProgramHeaders() 209 if ((phdr.p_flags & PF_X) == 0) { in ReadProgramHeaders() 213 pt_loads_[phdr.p_offset] = LoadInfo{phdr.p_offset, phdr.p_vaddr, in ReadProgramHeaders() 214 static_cast<size_t>(phdr.p_memsz)}; in ReadProgramHeaders() [all …]
|