Lines Matching refs:ehdr
36 static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, in riscv_kexec_elf_load() argument
48 for (i = 0; i < ehdr->e_phnum; i++) { in riscv_kexec_elf_load()
76 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase() argument
86 for (i = 0; i < ehdr->e_phnum; i++) { in elf_find_pbase()
109 image->start = ehdr->e_entry - lowest_vaddr + kbuf.mem; in elf_find_pbase()
199 struct elfhdr ehdr; in elf_kexec_load() local
204 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf_kexec_load()
208 ret = elf_find_pbase(image, kernel_len, &ehdr, &elf_info, in elf_kexec_load()
216 ret = riscv_kexec_elf_load(image, &ehdr, &elf_info, in elf_kexec_load()
370 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in arch_kexec_apply_relocations_add()
371 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
372 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add()
374 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
383 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
397 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add()