Lines Matching refs:elf_base
43 void FindElfClassSection(const char *elf_base, in FindElfClassSection() argument
51 assert(elf_base); in FindElfClassSection()
55 assert(my_strncmp(elf_base, ELFMAG, SELFMAG) == 0); in FindElfClassSection()
57 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSection()
73 *section_start = elf_base + section->sh_offset; in FindElfClassSection()
79 void FindElfClassSegment(const char *elf_base, in FindElfClassSegment() argument
86 assert(elf_base); in FindElfClassSegment()
90 assert(my_strncmp(elf_base, ELFMAG, SELFMAG) == 0); in FindElfClassSegment()
92 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSegment()
100 *segment_start = elf_base + phdrs[i].p_offset; in FindElfClassSegment()
109 bool IsValidElf(const void* elf_base) { in IsValidElf() argument
110 return my_strncmp(reinterpret_cast<const char*>(elf_base), in IsValidElf()
114 int ElfClass(const void* elf_base) { in ElfClass() argument
116 reinterpret_cast<const ElfW(Ehdr)*>(elf_base); in ElfClass()
142 const char* elf_base = in FindElfSection() local
146 FindElfClassSection<ElfClass32>(elf_base, section_name, section_type, in FindElfSection()
150 FindElfClassSection<ElfClass64>(elf_base, section_name, section_type, in FindElfSection()
178 const char* elf_base = in FindElfSegment() local
182 FindElfClassSegment<ElfClass32>(elf_base, segment_type, in FindElfSegment()
186 FindElfClassSegment<ElfClass64>(elf_base, segment_type, in FindElfSegment()