Home | History | Annotate | Download | only in linux

Lines Matching refs:elf_base

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