Lines Matching refs:ehdr
99 explicit SectionLocator(const Elf32_Ehdr* ehdr) {
101 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff);
104 reinterpret_cast<const char*>(ehdr) + shdr_[ehdr->e_shstrndx].sh_offset;
105 nsections_ = ehdr->e_shnum;
122 void LocateSymbols(const Elf32_Ehdr* ehdr,
128 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff);
131 reinterpret_cast<const char*>(ehdr) + strtab->sh_offset;
136 reinterpret_cast<const char*>(ehdr) + symtab->sh_offset);
138 if ((sym[snum].st_shndx > 0) && (sym[snum].st_shndx < ehdr->e_shnum) &&
169 StaticSymbolVisitor(const Elf32_Ehdr* ehdr, SymbolTable* symbols)
170 : ehdr_(ehdr),
172 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff)),
240 const Elf32_Ehdr* ehdr = reinterpret_cast<const Elf32_Ehdr*>(base_addr);
241 if ((ehdr->e_ident[0] != 0x7f) || (ehdr->e_ident[1] != 'E') ||
242 (ehdr->e_ident[2] != 'L') || (ehdr->e_ident[3] != 'F') ||
243 (ehdr->e_ehsize != sizeof(Elf32_Ehdr))) {
249 if (ehdr->e_machine != EM_ARM) {
257 reinterpret_cast<const Elf32_Shdr*>(base_addr + ehdr->e_shoff);
259 SectionLocator section_locator(ehdr);
265 LocateSymbols(ehdr,
271 StaticSymbolVisitor static_visitor(ehdr, &symbol_names);
272 LocateSymbols(ehdr,