Home
last modified time | relevance | path

Searched refs:shdr (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_elf_parser.cpp176 ShdrType shdr; in ParseSectionHeaders() local
182 if (!Read((uintptr_t)shNdxOffset, &shdr, sizeof(shdr))) { in ParseSectionHeaders()
187 secSize = shdr.sh_size; in ParseSectionHeaders()
201 if (!Read((uintptr_t)offset, &shdr, sizeof(shdr))) { in ParseSectionHeaders()
224 if (shdr.sh_type == SHT_SYMTAB || shdr.sh_type == SHT_DYNSYM) { in ParseSectionHeaders()
320 uint32_t count = static_cast<uint32_t>((shdr.entSize != 0) ? (shdr.size / shdr.entSize) : 0); in ParseElfSymbols()
322 uintptr_t offset = static_cast<uintptr_t>(shdr.offset + idx * shdr.entSize); in ParseElfSymbols()
367 … uint32_t count = static_cast<uint32_t>((shdr.entSize != 0) ? (shdr.size / shdr.entSize) : 0); in ParseElfSymbolByAddr()
369 uintptr_t offset = static_cast<uintptr_t>(shdr.offset + idx * shdr.entSize); in ParseElfSymbolByAddr()
435 shdr = iter.second; in GetSectionInfo()
[all …]
H A Ddfx_elf.cpp431 ShdrInfo shdr; in GetBuildId() local
432 …if ((GetSectionInfo(shdr, NOTE_GNU_BUILD_ID) || GetSectionInfo(shdr, NOTES)) && GetMmapPtr() != nu… in GetBuildId()
433 … std::string buildIdHex = GetBuildId((uint64_t)((char*)GetMmapPtr() + shdr.offset), shdr.size); in GetBuildId()
665 uti->tableData = loadBase + shdr.addr; in FillUnwindTableByExidx()
666 uti->tableLen = shdr.size; in FillUnwindTableByExidx()
786 ShdrInfo shdr; in FindUnwindTableInfo() local
788 if (GetSectionInfo(shdr, ARM_EXIDX)) { in FindUnwindTableInfo()
914 ShdrInfo shdr; in DlPhdrCb() local
915 shdr.addr = pArmExidx->p_vaddr; in DlPhdrCb()
916 shdr.size = pArmExidx->p_memsz; in DlPhdrCb()
[all …]
H A Ddfx_symbols.cpp96 ShdrInfo shdr; in AddSymbolsByPlt() local
97 elf->GetSectionInfo(shdr, PLT); in AddSymbolsByPlt()
98 symbols.emplace_back(shdr.addr, shdr.size, PLT, filePath); in AddSymbolsByPlt()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Delf_test.cpp58 ShdrInfo shdr; variable
63 elf.GetSectionInfo(shdr, interestedSections[i]);
66 ASSERT_EQ(shdr.addr, shdrImitate.addr);
67 ASSERT_EQ(shdr.offset, shdrImitate.offset);
68 ASSERT_EQ(shdr.size, shdrImitate.size);
104 ShdrInfo shdr; variable
110 elf.GetSectionInfo(shdr, interestedSections[i]);
112 ASSERT_EQ(shdr.addr, shdrImitate.addr);
113 ASSERT_EQ(shdr.offset, shdrImitate.offset);
114 ASSERT_EQ(shdr.size, shdrImitate.size);
H A Delf_imitate.cpp784 bool ElfImitate::GetSectionInfo(ShdrInfo& shdr, const std::string secName) in GetSectionInfo() argument
789 shdr = iter.second; in GetSectionInfo()
860 ShdrInfo shdr; in AddSymbolsByPlt() local
861 GetSectionInfo(shdr, PLT); in AddSymbolsByPlt()
862 symbols.emplace_back(shdr.addr, shdr.size, PLT, filePath); in AddSymbolsByPlt()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_elf.h73 bool GetSectionInfo(ShdrInfo& shdr, const std::string secName);
89 static bool FindSection(struct dl_phdr_info *info, const std::string secName, ShdrInfo& shdr);
93 …static bool FillUnwindTableByExidx(ShdrInfo shdr, uintptr_t loadBase, struct UnwindTableInfo* uti);
H A Ddfx_elf_parser.h58 virtual bool GetSectionInfo(ShdrInfo& shdr, const uint32_t idx);
59 virtual bool GetSectionInfo(ShdrInfo& shdr, const std::string& secName);
80 bool ParseElfSymbols(ElfShdr shdr, bool isFunc);
/ohos5.0/foundation/graphic/graphic_3d/kits/js/src/
H A DBaseObjectJS.cpp233 auto shdr = mat->MaterialShader()->GetValue(); in CreateFromNativeInstance() local
234 auto shdruri = shdr->Uri()->GetValue(); in CreateFromNativeInstance()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/include/
H A Delf_imitate.h67 bool GetSectionInfo(ShdrInfo& shdr, const std::string secName);