Lines Matching defs:ehdr
44 struct elf32_hdr *ehdr;
60 ehdr = (struct elf32_hdr *)fw->data;
62 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG)) {
67 class = ehdr->e_ident[EI_CLASS];
80 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
82 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
159 const void *ehdr, *phdr;
166 ehdr = elf_data;
167 phnum = elf_hdr_get_e_phnum(class, ehdr);
168 phdr = elf_data + elf_hdr_get_e_phoff(class, ehdr);
244 const void *ehdr = elf_data;
245 u16 shnum = elf_hdr_get_e_shnum(class, ehdr);
247 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr);
251 shdr = elf_data + elf_hdr_get_e_shoff(class, ehdr);