Lines Matching full:elf
3 * Load ELF vmlinux file for the kexec_file_load syscall.
11 * Based on kexec-tools' kexec-elf-exec.c and kexec-elf-ppc64.c.
18 #include <linux/elf.h>
60 * elf_is_ehdr_sane - check that it is safe to use the ELF header
61 * @buf_len: size of the buffer in which the ELF file is loaded.
74 pr_debug("Unknown ELF version.\n"); in elf_is_ehdr_sane()
124 pr_debug("Buffer is too small to hold ELF header.\n"); in elf_read_ehdr()
131 pr_debug("No ELF header magic.\n"); in elf_read_ehdr()
136 pr_debug("Not a supported ELF class.\n"); in elf_read_ehdr()
140 pr_debug("Not a supported ELF data format.\n"); in elf_read_ehdr()
146 pr_debug("Bad ELF header size.\n"); in elf_read_ehdr()
174 pr_debug("Unknown ELF class.\n"); in elf_read_ehdr()
183 * @buf_len: size of the buffer in which the ELF file is loaded.
189 pr_debug("ELF segment location wraps around.\n"); in elf_is_phdr_sane()
192 pr_debug("ELF segment not in file.\n"); in elf_is_phdr_sane()
195 pr_debug("ELF segment address wraps around.\n"); in elf_is_phdr_sane()
238 pr_debug("Unknown ELF class.\n"); in elf_read_phdr()
282 * elf_read_from_buffer - read ELF file and sets up ELF header and ELF info
283 * @buf: Buffer to read ELF file from.
288 * This function allows reading ELF files with different byte order than
325 * kexec_build_elf_info - read ELF executable and check that we can use it
339 pr_err("Not an ELF executable.\n"); in kexec_build_elf_info()
342 pr_err("No ELF program header.\n"); in kexec_build_elf_info()
353 pr_err("Requires an ELF interpreter.\n"); in kexec_build_elf_info()
381 * kexec_elf_load - load ELF executable image