Searched refs:phdr (Results 1 – 3 of 3) 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 …]
1244 Elf64_Phdr *phdr; in crash_prepare_elf64_headers() local1272 phdr = (Elf64_Phdr *)(ehdr + 1); in crash_prepare_elf64_headers()1288 phdr->p_type = PT_NOTE; in crash_prepare_elf64_headers()1290 phdr->p_offset = phdr->p_paddr = notes_addr; in crash_prepare_elf64_headers()1291 phdr->p_filesz = phdr->p_memsz = sizeof(note_buf_t); in crash_prepare_elf64_headers()1293 phdr++; in crash_prepare_elf64_headers()1297 phdr->p_type = PT_NOTE; in crash_prepare_elf64_headers()1298 phdr->p_offset = phdr->p_paddr = paddr_vmcoreinfo_note(); in crash_prepare_elf64_headers()1299 phdr->p_filesz = phdr->p_memsz = VMCOREINFO_NOTE_SIZE; in crash_prepare_elf64_headers()1301 phdr++; in crash_prepare_elf64_headers()[all …]
202 Elf32_Phdr *phdr; in stack_map_get_build_id_32() local210 phdr = (Elf32_Phdr *)(page_addr + sizeof(Elf32_Ehdr)); in stack_map_get_build_id_32()213 if (phdr[i].p_type == PT_NOTE) in stack_map_get_build_id_32()215 page_addr + phdr[i].p_offset, in stack_map_get_build_id_32()216 phdr[i].p_filesz); in stack_map_get_build_id_32()225 Elf64_Phdr *phdr; in stack_map_get_build_id_64() local233 phdr = (Elf64_Phdr *)(page_addr + sizeof(Elf64_Ehdr)); in stack_map_get_build_id_64()236 if (phdr[i].p_type == PT_NOTE) in stack_map_get_build_id_64()238 page_addr + phdr[i].p_offset, in stack_map_get_build_id_64()239 phdr[i].p_filesz); in stack_map_get_build_id_64()