Lines Matching refs:ehdr
44 struct elf32_hdr *ehdr; local
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; local
166 ehdr = elf_data;
167 phnum = elf_hdr_get_e_phnum(class, ehdr);
168 phdr = elf_data + elf_hdr_get_e_phoff(class, ehdr);
253 const void *ehdr = elf_data; local
254 u16 shnum = elf_hdr_get_e_shnum(class, ehdr);
256 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr);
260 shdr = elf_data + elf_hdr_get_e_shoff(class, ehdr);