Lines Matching full:elf
3 * tools/testing/selftests/kvm/lib/elf.c
11 #include <linux/elf.h>
19 /* Open the ELF file. */ in elfhdr_get()
22 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in elfhdr_get()
26 /* Read in and validate ELF Identification Record. in elfhdr_get()
27 * The ELF Identification record is the first 16 (EI_NIDENT) bytes in elfhdr_get()
28 * of the ELF header, which is at the beginning of the ELF file. in elfhdr_get()
31 * the real size of the ELF header. in elfhdr_get()
37 "ELF MAGIC Mismatch,\n" in elfhdr_get()
56 "cases where the host and ELF file endianness\n" in elfhdr_get()
68 "ELF version,\n" in elfhdr_get()
74 /* Read in the ELF header. in elfhdr_get()
75 * With the ELF Identification portion of the ELF header in elfhdr_get()
77 * as expected, it is now safe to read the entire ELF header. in elfhdr_get()
80 TEST_ASSERT(offset_rv == 0, "Seek to ELF header failed,\n" in elfhdr_get()
96 /* VM ELF Load
99 * filename - Path to ELF file
108 * Loads the program image of the ELF file specified by filename,
119 /* Open the ELF file. */ in kvm_vm_elf_load()
122 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in kvm_vm_elf_load()
126 /* Read in the ELF header. */ in kvm_vm_elf_load()
130 * The following ELF header members specify the location in kvm_vm_elf_load()
179 * the ELF file. in kvm_vm_elf_load()