Lines Matching full:elf
14 #include <linux/elf.h>
38 /* Stores the pointer to the buffer containing kernel elf core headers. */
158 * Architectures may override this function to allocate ELF header in 2nd kernel
172 * Architectures may override this function to read from ELF header
296 /* Read from the ELF header and then the crash dump. On error, negative value is
314 /* Read ELF core header */ in __read_vmcore()
329 /* Read Elf note segment */ in __read_vmcore()
333 /* We add device dumps before other elf notes because the in __read_vmcore()
334 * other elf notes may not fill the elf notes buffer in __read_vmcore()
336 * between the elf notes and the device dumps. Tools will in __read_vmcore()
339 * the other elf notes ensure that zero-filled data can be in __read_vmcore()
362 /* Read remaining elf notes */ in __read_vmcore()
473 * non-contiguous objects (ELF header, ELF note segment and memory
475 * virtually contiguous user-space in ELF layout.
594 /* We add device dumps before other elf notes because the in mmap_vmcore()
595 * other elf notes may not fill the elf notes buffer in mmap_vmcore()
597 * between the elf notes and the device dumps. Tools will in mmap_vmcore()
600 * the other elf notes ensure that zero-filled data can be in mmap_vmcore()
602 * other elf notes can be properly mmaped at page aligned in mmap_vmcore()
627 /* Read remaining elf notes */ in mmap_vmcore()
701 * @ehdr_ptr: ELF header
704 * program header table pointed to by @ehdr_ptr to real size of ELF
754 * headers and sum of real size of their ELF note segment headers and
757 * @ehdr_ptr: ELF header
767 * and each of PT_NOTE program headers has actual ELF note segment
790 * copy_notes_elf64 - copy ELF note segments in a given buffer
792 * @ehdr_ptr: ELF header
793 * @notes_buf: buffer into which ELF note segments are copied
795 * This function is used to copy ELF note segment in the 1st kernel
798 * real ELF note segment headers and data.
802 * and each of PT_NOTE program headers has actual ELF note segment
892 * @ehdr_ptr: ELF header
895 * program header table pointed to by @ehdr_ptr to real size of ELF
945 * headers and sum of real size of their ELF note segment headers and
948 * @ehdr_ptr: ELF header
958 * and each of PT_NOTE program headers has actual ELF note segment
981 * copy_notes_elf32 - copy ELF note segments in a given buffer
983 * @ehdr_ptr: ELF header
984 * @notes_buf: buffer into which ELF note segments are copied
986 * This function is used to copy ELF note segment in the 1st kernel
989 * real ELF note segment headers and data.
993 * and each of PT_NOTE program headers has actual ELF note segment
1096 /* Skip Elf header, program headers and Elf note segment. */ in process_ptload_program_headers_elf64()
1139 /* Skip Elf header, program headers and Elf note segment. */ in process_ptload_program_headers_elf32()
1175 /* Skip Elf header, program headers and Elf note segment. */ in set_vmcore_list_offsets()
1200 /* Read Elf header */ in parse_crash_elf64_headers()
1215 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf64_headers()
1219 /* Read in all elf headers. */ in parse_crash_elf64_headers()
1256 /* Read Elf header */ in parse_crash_elf32_headers()
1271 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf32_headers()
1275 /* Read in all elf headers. */ in parse_crash_elf32_headers()
1314 pr_warn("Warning: Core image elf header not found\n"); in parse_crash_elf_headers()
1327 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf_headers()
1363 * vmcoredd_update_program_headers - Update all Elf program headers
1364 * @elfptr: Pointer to elf header
1365 * @elfnotesz: Size of elf notes aligned to page size
1366 * @vmcoreddsz: Size of device dumps to be added to elf note header
1368 * Determine type of Elf header (Elf64 or Elf32) and update the elf note size.
1369 * Also update the offsets of all the program headers after the elf note header.
1426 * Elf header
1429 * Update the total size of all the device dumps and update the Elf program
1453 * Write Elf note at the beginning of the buffer to indicate vmcore device
1544 /* Allow architectures to allocate ELF header in 2nd kernel */ in vmcore_init()