Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_elf_parser.cpp65 EhdrType ehdr; in ParseAllHeaders() local
66 if (!Read(0, &ehdr, sizeof(ehdr))) { in ParseAllHeaders()
90 if (ehdr.e_shnum == 0) { in ParseElfHeaders()
94 auto machine = ehdr.e_machine; in ParseElfHeaders()
108 elfSize_ = ehdr.e_shoff + ehdr.e_shentsize * ehdr.e_shnum; in ParseElfHeaders()
115 uint64_t offset = ehdr.e_phoff; in ParseProgramHeaders()
117 for (size_t i = 0; i < ehdr.e_phnum; i++, offset += ehdr.e_phentsize) { in ParseProgramHeaders()
178 if (ehdr.e_shstrndx < ehdr.e_shnum) { in ParseSectionHeaders()
181 uint64_t shNdxOffset = offset + ehdr.e_shstrndx * ehdr.e_shentsize; in ParseSectionHeaders()
196 offset += ehdr.e_shentsize; in ParseSectionHeaders()
[all …]
H A Ddfx_elf.cpp1005 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)data; in GetElfSize() local
1006 return static_cast<size_t>(ehdr->e_shoff + (ehdr->e_shentsize * ehdr->e_shnum)); in GetElfSize()
1008 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)data; in GetElfSize() local
1009 return static_cast<size_t>(ehdr->e_shoff + (ehdr->e_shentsize * ehdr->e_shnum)); in GetElfSize()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_elf_parser.h70 bool ParseElfHeaders(const EhdrType& ehdr);
72 bool ParseProgramHeaders(const EhdrType& ehdr);
74 bool ParseSectionHeaders(const EhdrType& ehdr);