Lines Matching full:elf
16 #include <linux/elf.h>
40 /* Stores the pointer to the buffer containing kernel elf core headers. */
209 * Architectures may override this function to allocate ELF header in 2nd kernel
223 * Architectures may override this function to read from ELF header
330 /* Read from the ELF header and then the crash dump. On error, negative value is
345 /* Read ELF core header */ in __read_vmcore()
358 /* Read ELF note segment */ in __read_vmcore()
362 /* We add device dumps before other elf notes because the in __read_vmcore()
363 * other elf notes may not fill the elf notes buffer in __read_vmcore()
365 * between the elf notes and the device dumps. Tools will in __read_vmcore()
368 * the other elf notes ensure that zero-filled data can be in __read_vmcore()
389 /* Read remaining elf notes */ in __read_vmcore()
457 * non-contiguous objects (ELF header, ELF note segment and memory
459 * virtually contiguous user-space in ELF layout.
630 /* We add device dumps before other elf notes because the in mmap_vmcore()
631 * other elf notes may not fill the elf notes buffer in mmap_vmcore()
633 * between the elf notes and the device dumps. Tools will in mmap_vmcore()
636 * the other elf notes ensure that zero-filled data can be in mmap_vmcore()
638 * other elf notes can be properly mmaped at page aligned in mmap_vmcore()
663 /* Read remaining elf notes */ in mmap_vmcore()
734 * @ehdr_ptr: ELF header
737 * program header table pointed to by @ehdr_ptr to real size of ELF
787 * headers and sum of real size of their ELF note segment headers and
790 * @ehdr_ptr: ELF header
800 * and each of PT_NOTE program headers has actual ELF note segment
823 * copy_notes_elf64 - copy ELF note segments in a given buffer
825 * @ehdr_ptr: ELF header
826 * @notes_buf: buffer into which ELF note segments are copied
828 * This function is used to copy ELF note segment in the 1st kernel
831 * real ELF note segment headers and data.
835 * and each of PT_NOTE program headers has actual ELF note segment
925 * @ehdr_ptr: ELF header
928 * program header table pointed to by @ehdr_ptr to real size of ELF
978 * headers and sum of real size of their ELF note segment headers and
981 * @ehdr_ptr: ELF header
991 * and each of PT_NOTE program headers has actual ELF note segment
1014 * copy_notes_elf32 - copy ELF note segments in a given buffer
1016 * @ehdr_ptr: ELF header
1017 * @notes_buf: buffer into which ELF note segments are copied
1019 * This function is used to copy ELF note segment in the 1st kernel
1022 * real ELF note segment headers and data.
1026 * and each of PT_NOTE program headers has actual ELF note segment
1128 /* Skip ELF header, program headers and ELF note segment. */ in process_ptload_program_headers_elf64()
1165 /* Skip ELF header, program headers and ELF note segment. */ in process_ptload_program_headers_elf32()
1196 /* Skip ELF header, program headers and ELF note segment. */ in set_vmcore_list_offsets()
1221 /* Read ELF header */ in parse_crash_elf64_headers()
1236 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf64_headers()
1240 /* Read in all elf headers. */ in parse_crash_elf64_headers()
1277 /* Read ELF header */ in parse_crash_elf32_headers()
1292 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf32_headers()
1296 /* Read in all elf headers. */ in parse_crash_elf32_headers()
1335 pr_warn("Warning: Core image elf header not found\n"); in parse_crash_elf_headers()
1348 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf_headers()
1383 * vmcoredd_update_program_headers - Update all ELF program headers
1384 * @elfptr: Pointer to elf header
1385 * @elfnotesz: Size of elf notes aligned to page size
1386 * @vmcoreddsz: Size of device dumps to be added to elf note header
1388 * Determine type of ELF header (Elf64 or Elf32) and update the elf note size.
1389 * Also update the offsets of all the program headers after the elf note header.
1446 * ELF header
1449 * Update the total size of all the device dumps and update the ELF program
1473 * Write ELF note at the beginning of the buffer to indicate vmcore device
1717 /* Allow architectures to allocate ELF header in 2nd kernel */ in vmcore_init()