Lines Matching refs:ehdr
22 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)(void *)fw; in e32_parse_ehdr() local
30 size < (ehdr->e_shoff + sizeof(Elf32_Shdr))) in e32_parse_ehdr()
33 if (!IS_ELF(*ehdr) || in e32_parse_ehdr()
34 ehdr->e_ident[EI_VERSION] != EV_CURRENT || in e32_parse_ehdr()
35 ehdr->e_ident[EI_CLASS] != ELFCLASS32 || in e32_parse_ehdr()
36 ehdr->e_phentsize != sizeof(Elf32_Phdr) || in e32_parse_ehdr()
37 ehdr->e_shentsize != sizeof(Elf32_Shdr)) { in e32_parse_ehdr()
42 if (ehdr->e_phnum == 0) { in e32_parse_ehdr()
58 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)(void *)fw; in e32_parser_load_elf_image() local
59 Elf32_Phdr *phdr = (void *)((int8_t *)ehdr + ehdr->e_phoff); in e32_parser_load_elf_image()
70 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in e32_parser_load_elf_image()
104 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)(void *)fw; in e32_parser_find_rsc_table() local
107 if (fw + fw_size <= fw || fw + ehdr->e_shoff < fw) in e32_parser_find_rsc_table()
110 shdr = (void *)(fw + ehdr->e_shoff); in e32_parser_find_rsc_table()
115 name_table = (char *)elf_data + shdr[ehdr->e_shstrndx].sh_offset; in e32_parser_find_rsc_table()
119 for (i = 0; i < ehdr->e_shnum; i++, shdr++) { in e32_parser_find_rsc_table()