Home | History | Annotate | Download | only in zbsdmod

Lines Matching defs:elf

107 #define elf	((Elf32_Ehdr *)bsdimage)
108 #define phdr ((Elf32_Phdr *)((char *)elf + elf->e_phoff))
110 if (memcmp(elf->e_ident, ELFMAG, SELFMAG) != 0 ||
111 elf->e_ident[EI_CLASS] != ELFCLASS32)
122 for (i = 0; i < elf->e_phnum; i++) {
169 * Set up pointers to copied ELF and section headers.
175 sz = elf->e_shnum * sizeof(Elf_Shdr);
176 shp = (Elf_Shdr *)((vaddr_t)elf + elf->e_shoff);
183 * copied ELF header. Don't bother with string tables if
187 for (havesyms = i = 0; i < elf->e_shnum; i++)
190 for (i = 0; i < elf->e_shnum; i++) {
198 ((char *)elf +
209 * Copy the ELF and section headers.
214 ((char *)elfv)[sz] = ((char *)elf)[sz];
216 sz = elf->e_shnum * sizeof(Elf_Shdr);
223 * Frob the copied ELF header to give information relative
237 for (i = 0; esymp != 0 && i < elf->e_phnum; i++) {
252 for (i = 0; i < elf->e_phnum; i++) {
262 (((char *)elf) + phdr[i].p_offset)[sz];
271 addr = (int *)(elf->e_entry);