Lines Matching refs:e_shnum
687 sechdrs = vzalloc(pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in __kexec_load_purgatory()
691 memcpy(sechdrs, sechdrs_c, pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in __kexec_load_purgatory()
707 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory()
720 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory()
743 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory()
791 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory()
850 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations()
863 if (sechdrs[i].sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations()
864 sechdrs[i].sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
877 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
921 || (pi->ehdr->e_shnum * sizeof(Elf_Shdr) > in kexec_load_purgatory()
956 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol()
960 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol()
975 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()