Searched refs:phdr (Results 1 – 6 of 6) sorted by relevance
/system/unwinding/libunwindstack/tests/ |
D | ElfInterfaceTest.cpp | 190 Phdr phdr = {}; in SinglePtLoad() local 191 phdr.p_type = PT_LOAD; in SinglePtLoad() 192 phdr.p_vaddr = 0x2000; in SinglePtLoad() 193 phdr.p_memsz = 0x10000; in SinglePtLoad() 194 phdr.p_flags = PF_R | PF_X; in SinglePtLoad() 195 phdr.p_align = 0x1000; in SinglePtLoad() 196 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad() 228 Phdr phdr = {}; in MultipleExecutablePtLoads() local 229 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads() 230 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 | 63 Elf32_Phdr phdr; in InitElf32() local 64 memset(&phdr, 0, sizeof(phdr)); in InitElf32() 65 phdr.p_type = PT_LOAD; in InitElf32() 66 phdr.p_filesz = 0x10000; in InitElf32() 67 phdr.p_memsz = 0x10000; in InitElf32() 68 phdr.p_flags = PF_R | PF_X; in InitElf32() 69 phdr.p_align = 0x1000; in InitElf32() 70 memory_->SetMemory(0x100, &phdr, sizeof(phdr)); in InitElf32() 73 memset(&phdr, 0, sizeof(phdr)); in InitElf32() 74 phdr.p_type = PT_ARM_EXIDX; in InitElf32() [all …]
|
D | UnwinderTest.cpp | 1695 Elf32_Phdr phdr = {}; in TEST_F() local 1696 phdr.p_flags = PF_X; in TEST_F() 1697 phdr.p_type = PT_LOAD; in TEST_F() 1698 phdr.p_offset = 0x100000; in TEST_F() 1699 phdr.p_vaddr = 0x100000; in TEST_F() 1700 phdr.p_memsz = 0x1000; in TEST_F() 1701 memory_->SetMemory(0xf7050, &phdr, sizeof(phdr)); in TEST_F()
|
/system/unwinding/libunwindstack/ |
D | ElfInterface.cpp | 161 PhdrType phdr; in GetLoadBias() local 162 if (!memory->ReadFully(offset, &phdr, sizeof(phdr))) { in GetLoadBias() 167 if (phdr.p_type == PT_LOAD && (phdr.p_flags & PF_X)) { in GetLoadBias() 168 return static_cast<uint64_t>(phdr.p_vaddr) - phdr.p_offset; in GetLoadBias() 179 PhdrType phdr; in ReadProgramHeaders() local 180 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders() 184 switch (phdr.p_type) { in ReadProgramHeaders() 187 if ((phdr.p_flags & PF_X) == 0) { in ReadProgramHeaders() 191 pt_loads_[phdr.p_offset] = LoadInfo{phdr.p_offset, phdr.p_vaddr, in ReadProgramHeaders() 192 static_cast<size_t>(phdr.p_memsz)}; in ReadProgramHeaders() [all …]
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 328 const auto& phdr = program_headers[i]; in GetProgramHeader() local 329 segments[i].vaddr = phdr.p_vaddr; in GetProgramHeader() 330 segments[i].file_offset = phdr.p_offset; in GetProgramHeader() 331 segments[i].file_size = phdr.p_filesz; in GetProgramHeader() 333 (phdr.p_type == llvm::ELF::PT_LOAD) && (phdr.p_flags & llvm::ELF::PF_X); in GetProgramHeader() 334 segments[i].is_load = (phdr.p_type == llvm::ELF::PT_LOAD); in GetProgramHeader()
|