Lines Matching defs:ehdr
114 Elf_Ehdr ehdr;
159 memset(&ehdr.e_ident[EI_PAD], 0, sizeof(ehdr.e_ident) - EI_PAD);
160 memcpy(ehdr.e_ident, ELFMAG, SELFMAG);
162 ehdr.e_ident[EI_CLASS] = ELFCLASS32;
164 ehdr.e_ident[EI_CLASS] = ELFCLASS64;
166 ehdr.e_ident[EI_DATA] = ELFDEFNNAME(MACHDEP_ENDIANNESS);
167 ehdr.e_ident[EI_VERSION] = EV_CURRENT;
172 ehdr.e_ident[EI_OSABI] = ELFOSABI_SYSV;
173 ehdr.e_ident[EI_ABIVERSION] = 0;
175 ehdr.e_type = ET_CORE;
177 ehdr.e_machine = ELFDEFNNAME(MACHDEP_ID);
178 ehdr.e_version = EV_CURRENT;
179 ehdr.e_entry = 0;
180 ehdr.e_flags = 0;
181 ehdr.e_ehsize = sizeof(ehdr);
182 ehdr.e_phentsize = sizeof(Elf_Phdr);
184 ehdr.e_phnum = npsections;
185 ehdr.e_shentsize = 0;
186 ehdr.e_shnum = 0;
187 ehdr.e_shoff = 0;
188 ehdr.e_phoff = sizeof(ehdr);
190 ehdr.e_phnum = PN_XNUM;
191 ehdr.e_shentsize = sizeof(Elf_Shdr);
192 ehdr.e_shnum = 1;
193 ehdr.e_shoff = sizeof(ehdr);
194 ehdr.e_phoff = sizeof(ehdr) + sizeof(shdr);
196 ehdr.e_shstrndx = 0;
199 ELF_MD_COREDUMP_SETUP(l, &ehdr);
203 MODULE_HOOK_CALL(coredump_write_hook, (cookie, UIO_SYSSPACE, &ehdr,
204 sizeof(ehdr)), ENOSYS, error);
220 notestart = ehdr.e_phoff + psectionssize;