/system/unwinding/libunwindstack/ |
D | ElfInterface.cpp | 287 uint64_t sh_offset = offset + ehdr.e_shstrndx * ehdr.e_shentsize; in ReadSectionHeaders() local 288 if (memory_->ReadFully(sh_offset, &shdr, sizeof(shdr))) { in ReadSectionHeaders() 289 sec_offset = shdr.sh_offset; in ReadSectionHeaders() 315 symbols_.push_back(new Symbols(shdr.sh_offset, shdr.sh_size, shdr.sh_entsize, in ReadSectionHeaders() 316 str_shdr.sh_offset, str_shdr.sh_size)); in ReadSectionHeaders() 323 debug_frame_offset_ = shdr.sh_offset; in ReadSectionHeaders() 325 debug_frame_section_bias_ = static_cast<uint64_t>(shdr.sh_addr) - shdr.sh_offset; in ReadSectionHeaders() 327 gnu_debugdata_offset_ = shdr.sh_offset; in ReadSectionHeaders() 330 eh_frame_offset_ = shdr.sh_offset; in ReadSectionHeaders() 331 eh_frame_section_bias_ = static_cast<uint64_t>(shdr.sh_addr) - shdr.sh_offset; in ReadSectionHeaders() [all …]
|
/system/unwinding/libunwindstack/tests/ |
D | ElfInterfaceTest.cpp | 535 shdr.sh_offset = 0x10000; in SonameInit() 788 shdr.sh_offset = 0x5000; in InitSectionHeadersMalformedSymData() 798 shdr.sh_offset = 0x6000; in InitSectionHeadersMalformedSymData() 808 shdr.sh_offset = 0x6000; in InitSectionHeadersMalformedSymData() 818 shdr.sh_offset = 0xf000; in InitSectionHeadersMalformedSymData() 861 shdr.sh_offset = 0x5000; in InitSectionHeaders() 871 shdr.sh_offset = 0x6000; in InitSectionHeaders() 887 shdr.sh_offset = 0xf000; in InitSectionHeaders() 949 shdr.sh_offset = 0x5000; in InitSectionHeadersOffsets() 959 shdr.sh_offset = 0xf000; in InitSectionHeadersOffsets() [all …]
|
D | JitDebugTest.cpp | 96 uint64_t sh_offset = sizeof(ehdr); in CreateElf() local 101 ehdr.e_shoff = sh_offset; in CreateElf() 109 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf() 111 sh_offset += sizeof(shdr); in CreateElf() 115 shdr.sh_offset = 0x500; in CreateElf() 117 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf() 121 sh_offset += sizeof(shdr); in CreateElf() 126 shdr.sh_offset = 0x600; in CreateElf() 128 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf() 130 sh_offset += sizeof(shdr); in CreateElf() [all …]
|
D | GenGnuDebugdata.cpp | 67 shdr.sh_offset = 0x5000; in GenElf() 76 shdr.sh_offset = 0x200; in GenElf()
|
D | ElfTestUtils.cpp | 87 shdr.sh_offset = symtab_offset; in TestInitGnuDebugdata() 129 shdr.sh_offset = offset; in TestInitGnuDebugdata()
|
D | MapInfoGetBuildIDTest.cpp | 159 shdr.sh_offset = 0xb000; in InitElfData() 169 shdr.sh_offset = 0xf000; in InitElfData()
|
D | MapInfoCreateMemoryTest.cpp | 45 static void InitElf(int fd, uint64_t file_offset, uint64_t sh_offset, uint8_t class_type) { in InitElf() argument 53 ehdr.e_shoff = sh_offset; in InitElf()
|
D | MapInfoGetElfTest.cpp | 52 static void InitElf(uint64_t sh_offset, Ehdr* ehdr, uint8_t class_type, uint8_t machine_type) { in InitElf() argument 57 ehdr->e_shoff = sh_offset; in InitElf()
|
D | UnwinderTest.cpp | 1710 shdr.sh_offset = 0x300; in TEST_F() 1718 shdr.sh_offset = 0x400; in TEST_F()
|
/system/unwinding/libunwindstack/tests/fuzz/ |
D | UnwinderComponentCreator.cpp | 255 uint64_t sh_offset = sizeof(ehdr); in PutElfInMemory() local 260 ehdr.e_shoff = sh_offset; in PutElfInMemory() 268 memory->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in PutElfInMemory() 270 sh_offset += sizeof(shdr); in PutElfInMemory() 274 shdr.sh_offset = 0x500; in PutElfInMemory() 276 memory->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in PutElfInMemory() 279 sh_offset += sizeof(shdr); in PutElfInMemory() 284 shdr.sh_offset = 0x600; in PutElfInMemory() 286 memory->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in PutElfInMemory()
|
/system/chre/platform/shared/ |
D | nanoapp_loader.cc | 494 reinterpret_cast<char *>(mBinary + dynamicStringTablePtr->sh_offset); in getDynamicStringTable() 506 table = (mBinary + dynamicSymbolTablePtr->sh_offset); in getDynamicSymbolTable() 585 memcpy(mSectionNamesPtr, mBinary + stringSection.sh_offset, sectionSize); in copyAndVerifyHeaders() 608 memcpy(mSymbolTablePtr, mBinary + symbolTableHeader->sh_offset, in copyAndVerifyHeaders() 629 memcpy(mStringTablePtr, mBinary + stringTableHeader->sh_offset, in copyAndVerifyHeaders()
|
/system/chre/platform/shared/include/chre/platform/shared/ |
D | loader_util.h | 190 Elf32_Off sh_offset; member
|
/system/bpf/libbpf_android/ |
D | Loader.cpp | 146 elfFile.seekg(shTable[id].sh_offset); in readSectionByIdx() 201 elfFile.seekg(shTable[i].sh_offset); in readSectionByName() 249 elfFile.seekg(shTable[i].sh_offset); in readSectionByType()
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 352 sections[i].file_offset = shdr.sh_offset; in GetSectionHeader()
|