Elf_Ehdr
Elf_Ehdr eh;
__elf_is_okay__(Elf_Ehdr *ehdr)
Elf_Ehdr ehdr;
_read(fd, &ehdr, sizeof(Elf_Ehdr)) != sizeof(Elf_Ehdr) ||
Elf_Ehdr *e = kd->vmst->mmapbase;
Elf_Ehdr *ehdr;
if (_kvm_maphdrs(kd, sizeof(Elf_Ehdr)) == -1)
static Elf_Ehdr *
Elf_Ehdr *hdr;
if (hdr == (Elf_Ehdr *)MAP_FAILED) {
static Elf_Ehdr *get_elf_header(int, const char *);
Elf_Ehdr *hdr;
const Elf_Ehdr *ehdr;
ehdr = (Elf_Ehdr *)mapbase;
if (bytes_read < 0 || ef.firstlen <= sizeof(Elf_Ehdr)) {
ehdr = ef.ehdr = (Elf_Ehdr *)ef.firstpage;
Elf_Ehdr *ehdr;
Elf_Ehdr *ehdr;
Elf_Ehdr *ehdr;
Elf_Ehdr *hdr;
Elf_Ehdr *hdr;
Elf_Ehdr *hdr;
Elf_Ehdr hdr;
Elf_Ehdr *hdr;
ehdr = (Elf_Ehdr *)&(md->md_data);
Elf_Ehdr *ehdr;
Elf_Ehdr *ehdr;
ehdr = (Elf_Ehdr *)&(md->md_data);
Elf_Ehdr *ehdr;
ehdr = (Elf_Ehdr *)&(md->md_data);
php = (Elf_Phdr *)(target.buf + sizeof(Elf_Ehdr)) + 1;
Elf_Ehdr *ehdr;
ehdr = target_reserve(target, sizeof(Elf_Ehdr), &error);
ehdr->e_ehsize = sizeof(Elf_Ehdr);
const Elf_Ehdr *hdr;
hdr = (const Elf_Ehdr *)imgp->image_header;
__elfN(check_header)(const Elf_Ehdr *hdr)
hdr->e_ehsize != sizeof(Elf_Ehdr) ||
const Elf_Ehdr *hdr = NULL;
hdr = (const Elf_Ehdr *)imgp->image_header;
const Elf_Ehdr *hdr = (const Elf_Ehdr *)imgp->image_header;
const Elf_Ehdr *hdr = (const Elf_Ehdr *) imgp->image_header;
static int __elfN(check_header)(const Elf_Ehdr *hdr);
elf_gethdr(struct file *fp, Elf_Ehdr *ehdr)
size_t nbyte = sizeof(Elf_Ehdr);
if (!(ehdr->e_ehsize == sizeof(Elf_Ehdr))) {
ehdr->e_ehsize, sizeof(Elf_Ehdr)));
Elf_Ehdr *ehdr = NULL;
ehdr = kmalloc(sizeof(Elf_Ehdr), M_TEMP, M_ZERO | M_WAITOK);
Elf_Ehdr *hdr;
hdr = (Elf_Ehdr *)firstpage;
Elf_Ehdr *hdr;
hdr = (Elf_Ehdr *) preload_search_info(modptr, MODINFO_METADATA |
Elf_Ehdr *hdr;
Elf_Ehdr ehdr;
if ((size_t)st.st_size < sizeof(Elf_Ehdr))
elf_check_header(Elf_Ehdr *eh)
Elf_Ehdr *ehdr = (Elf_Ehdr *)base;
Elf_Ehdr eh;
Elf_Ehdr ehdr;
off = offsetof(Elf_Ehdr, e_shoff);
php = (Elf_Phdr *)((char *)hdr + sizeof(Elf_Ehdr)) + 1;
*off += sizeof(Elf_Ehdr);
Elf_Ehdr *ehdr;
ehdr = (Elf_Ehdr *)((char *)dst + ehoff);
ehdr->e_ehsize = sizeof(Elf_Ehdr);
cnt = read(efd, &exec, sizeof(Elf_Ehdr));
if (cnt != sizeof(Elf_Ehdr))
if (IS_ELF(*(Elf_Ehdr *)&exec)) {
Elf_Ehdr elf;
Elf_Ehdr ehdr;
Elf_Ehdr elf;
Elf_Ehdr ehdr;