Searched refs:phdr (Results 1 – 2 of 2) sorted by relevance
185 static bool elf_is_phdr_sane(const struct elf_phdr *phdr, size_t buf_len) in elf_is_phdr_sane() argument188 if (phdr->p_offset + phdr->p_filesz < phdr->p_offset) { in elf_is_phdr_sane()191 } else if (phdr->p_offset + phdr->p_filesz > buf_len) { in elf_is_phdr_sane()194 } else if (phdr->p_paddr + phdr->p_memsz < phdr->p_paddr) { in elf_is_phdr_sane()207 struct elf_phdr *phdr = (struct elf_phdr *) &elf_info->proghdrs[idx]; in elf_read_phdr() local215 phdr->p_type = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_type); in elf_read_phdr()216 phdr->p_flags = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_flags); in elf_read_phdr()220 phdr->p_offset = elf64_to_cpu(ehdr, buf_phdr->p_offset); in elf_read_phdr()221 phdr->p_paddr = elf64_to_cpu(ehdr, buf_phdr->p_paddr); in elf_read_phdr()222 phdr->p_vaddr = elf64_to_cpu(ehdr, buf_phdr->p_vaddr); in elf_read_phdr()[all …]
1249 Elf64_Phdr *phdr; in crash_prepare_elf64_headers() local1277 phdr = (Elf64_Phdr *)(ehdr + 1); in crash_prepare_elf64_headers()1293 phdr->p_type = PT_NOTE; in crash_prepare_elf64_headers()1295 phdr->p_offset = phdr->p_paddr = notes_addr; in crash_prepare_elf64_headers()1296 phdr->p_filesz = phdr->p_memsz = sizeof(note_buf_t); in crash_prepare_elf64_headers()1298 phdr++; in crash_prepare_elf64_headers()1302 phdr->p_type = PT_NOTE; in crash_prepare_elf64_headers()1303 phdr->p_offset = phdr->p_paddr = paddr_vmcoreinfo_note(); in crash_prepare_elf64_headers()1304 phdr->p_filesz = phdr->p_memsz = VMCOREINFO_NOTE_SIZE; in crash_prepare_elf64_headers()1306 phdr++; in crash_prepare_elf64_headers()[all …]