Home
last modified time | relevance | path

Searched refs:phdr_size (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/
H A Dkexec_elf.c79 size_t phdr_size; in elf_is_ehdr_sane() local
85 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_is_ehdr_sane()
88 if (ehdr->e_phoff + phdr_size < ehdr->e_phoff) { in elf_is_ehdr_sane()
91 } else if (ehdr->e_phoff + phdr_size > buf_len) { in elf_is_ehdr_sane()
254 size_t phdr_size, i; in elf_read_phdrs() local
261 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_read_phdrs()
263 elf_info->proghdrs = kzalloc(phdr_size, GFP_KERNEL); in elf_read_phdrs()
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c172 size_t phdr_size; in check_core_file() local
187 phdr_size = sizeof(*phdr) * ehdr->e_phnum; in check_core_file()
190 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file()
191 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file()
195 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file()
200 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()
/linux/tools/perf/util/
H A Dsymbol-minimal.c103 ssize_t phdr_size, ehdr_size, buf_size = 0; in filename__read_build_id() local
147 phdr_size = elf32 ? sizeof(Elf32_Phdr) * hdrs.ehdr32.e_phnum in filename__read_build_id()
149 phdr = malloc(phdr_size); in filename__read_build_id()
154 if (read(fd, phdr, phdr_size) != phdr_size) in filename__read_build_id()