Lines Matching defs:ehdr
538 GElf_Ehdr ehdr;
539 if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL))
547 if (ehdr.e_entry == 0)
552 if (ehdr.e_entry != at_entry)
582 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
589 if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr)
597 if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align)
602 GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset
607 if (at_entry != 0 && at_entry != ehdr.e_entry + bias)
654 size_t buffer_available = addrsize (ehdr.e_ident[EI_CLASS]);
670 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32)
671 vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB
674 vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB
681 *elfclass = ehdr.e_ident[EI_CLASS];
682 else if (*elfclass != ehdr.e_ident[EI_CLASS])
686 *elfdata = ehdr.e_ident[EI_DATA];
687 else if (*elfdata != ehdr.e_ident[EI_DATA])
827 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
828 if (ehdr == NULL)
843 if (e_phnum != phnum || ehdr->e_phentsize != phent)
850 off_t off = ehdr->e_phoff;