Home | History | Annotate | Download | only in ddb

Lines Matching defs:elf

69 	"ELF",
109 Elf_Ehdr *elf;
127 * Elf exec header
139 * Validate the Elf header.
141 elf = (Elf_Ehdr *)symtab;
142 if (memcmp(elf->e_ident, ELFMAG, SELFMAG) != 0 ||
143 elf->e_ident[EI_CLASS] != ELFCLASS)
146 switch (elf->e_machine) {
158 if (elf->e_shoff == 0)
160 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff);
161 for (i = 0; i < elf->e_shnum; i++) {
204 printf("[ %s ELF symbol table not valid ]\n", name);
215 Elf_Ehdr *elf = STAB_TO_EHDR(stab);
216 Elf_Shdr *shp = STAB_TO_SHDR(stab, elf);
222 * We don't load ELF header for ELF modules.
226 if ((Elf_Sym *)elf == STAB_TO_SYMSTART(stab)) {
229 for (i = 0; i < elf->e_shnum; i++) {
231 return ((char*)elf + shp[shp[i].sh_link].sh_offset);