Home | History | Annotate | Download | only in solaris

Lines Matching refs:elf_header

212 bool IsValidElf(const GElf_Ehdr *elf_header) {
213 return memcmp(elf_header, ELFMAG, SELFMAG) == 0;
434 bool LoadSymbols(Elf *elf, GElf_Ehdr *elf_header, struct SymbolInfo *symbols,
439 reinterpret_cast<GElf_Shdr *>(elf_header->e_shoff + base);
441 if (!FindSectionByName(elf, kStabName, elf_header->e_shstrndx,
447 if (!FindSectionByName(elf, kStabStrName, elf_header->e_shstrndx,
453 if (!FindSectionByName(elf, kSymtabName, elf_header->e_shstrndx,
459 if (!FindSectionByName(elf, kStrtabName, elf_header->e_shstrndx,
657 GElf_Ehdr elf_header;
661 if (gelf_getehdr(elf, &elf_header) == (GElf_Ehdr *)NULL) {
666 if (!IsValidElf(&elf_header)) {
671 if (!LoadSymbols(elf, &elf_header, &symbols, obj_base))
674 if (WriteModuleInfo(sym_fd, elf_header.e_machine, obj_file) &&