Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance
65 EhdrType ehdr; in ParseAllHeaders() local66 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 …]
1005 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)data; in GetElfSize() local1006 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() local1009 return static_cast<size_t>(ehdr->e_shoff + (ehdr->e_shentsize * ehdr->e_shnum)); in GetElfSize()
70 bool ParseElfHeaders(const EhdrType& ehdr);72 bool ParseProgramHeaders(const EhdrType& ehdr);74 bool ParseSectionHeaders(const EhdrType& ehdr);