Lines Matching full:elf
14 #include <linux/elf.h>
38 /* Stores the pointer to the buffer containing kernel elf core headers. */
181 * Architectures may override this function to allocate ELF header in 2nd kernel
195 * Architectures may override this function to read from ELF header
314 /* Read from the ELF header and then the crash dump. On error, negative value is
329 /* Read ELF core header */ in __read_vmcore()
342 /* Read ELF note segment */ in __read_vmcore()
346 /* We add device dumps before other elf notes because the in __read_vmcore()
347 * other elf notes may not fill the elf notes buffer in __read_vmcore()
349 * between the elf notes and the device dumps. Tools will in __read_vmcore()
352 * the other elf notes ensure that zero-filled data can be in __read_vmcore()
373 /* Read remaining elf notes */ in __read_vmcore()
482 * non-contiguous objects (ELF header, ELF note segment and memory
484 * virtually contiguous user-space in ELF layout.
612 /* We add device dumps before other elf notes because the in mmap_vmcore()
613 * other elf notes may not fill the elf notes buffer in mmap_vmcore()
615 * between the elf notes and the device dumps. Tools will in mmap_vmcore()
618 * the other elf notes ensure that zero-filled data can be in mmap_vmcore()
620 * other elf notes can be properly mmaped at page aligned in mmap_vmcore()
645 /* Read remaining elf notes */ in mmap_vmcore()
720 * @ehdr_ptr: ELF header
723 * program header table pointed to by @ehdr_ptr to real size of ELF
773 * headers and sum of real size of their ELF note segment headers and
776 * @ehdr_ptr: ELF header
786 * and each of PT_NOTE program headers has actual ELF note segment
809 * copy_notes_elf64 - copy ELF note segments in a given buffer
811 * @ehdr_ptr: ELF header
812 * @notes_buf: buffer into which ELF note segments are copied
814 * This function is used to copy ELF note segment in the 1st kernel
817 * real ELF note segment headers and data.
821 * and each of PT_NOTE program headers has actual ELF note segment
911 * @ehdr_ptr: ELF header
914 * program header table pointed to by @ehdr_ptr to real size of ELF
964 * headers and sum of real size of their ELF note segment headers and
967 * @ehdr_ptr: ELF header
977 * and each of PT_NOTE program headers has actual ELF note segment
1000 * copy_notes_elf32 - copy ELF note segments in a given buffer
1002 * @ehdr_ptr: ELF header
1003 * @notes_buf: buffer into which ELF note segments are copied
1005 * This function is used to copy ELF note segment in the 1st kernel
1008 * real ELF note segment headers and data.
1012 * and each of PT_NOTE program headers has actual ELF note segment
1115 /* Skip ELF header, program headers and ELF note segment. */ in process_ptload_program_headers_elf64()
1158 /* Skip ELF header, program headers and ELF note segment. */ in process_ptload_program_headers_elf32()
1194 /* Skip ELF header, program headers and ELF note segment. */ in set_vmcore_list_offsets()
1219 /* Read ELF header */ in parse_crash_elf64_headers()
1234 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf64_headers()
1238 /* Read in all elf headers. */ in parse_crash_elf64_headers()
1275 /* Read ELF header */ in parse_crash_elf32_headers()
1290 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf32_headers()
1294 /* Read in all elf headers. */ in parse_crash_elf32_headers()
1333 pr_warn("Warning: Core image elf header not found\n"); in parse_crash_elf_headers()
1346 pr_warn("Warning: Core image elf header is not sane\n"); in parse_crash_elf_headers()
1381 * vmcoredd_update_program_headers - Update all ELF program headers
1382 * @elfptr: Pointer to elf header
1383 * @elfnotesz: Size of elf notes aligned to page size
1384 * @vmcoreddsz: Size of device dumps to be added to elf note header
1386 * Determine type of ELF header (Elf64 or Elf32) and update the elf note size.
1387 * Also update the offsets of all the program headers after the elf note header.
1444 * ELF header
1447 * Update the total size of all the device dumps and update the ELF program
1471 * Write ELF note at the beginning of the buffer to indicate vmcore device
1559 /* Allow architectures to allocate ELF header in 2nd kernel */ in vmcore_init()