/linux-6.12.1/drivers/soc/qcom/ |
D | mdt_loader.c | 35 static ssize_t mdt_load_split_segment(void *ptr, const struct elf32_phdr *phdrs, in mdt_load_split_segment() argument 39 const struct elf32_phdr *phdr = &phdrs[segment]; in mdt_load_split_segment() 78 const struct elf32_phdr *phdrs; in qcom_mdt_get_size() local 86 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_get_size() 89 phdr = &phdrs[i]; in qcom_mdt_get_size() 127 const struct elf32_phdr *phdrs; in qcom_mdt_read_metadata() local 138 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_read_metadata() 143 if (phdrs[0].p_type == PT_LOAD) in qcom_mdt_read_metadata() 147 if ((phdrs[i].p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) { in qcom_mdt_read_metadata() 158 ehdr_size = phdrs[0].p_filesz; in qcom_mdt_read_metadata() [all …]
|
/linux-6.12.1/arch/parisc/boot/compressed/ |
D | misc.c | 237 Elf64_Phdr *phdrs, *phdr; in parse_elf() local 240 Elf32_Phdr *phdrs, *phdr; in parse_elf() 258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 259 if (!phdrs) in parse_elf() 262 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 265 phdr = &phdrs[i]; in parse_elf() 278 free(phdrs); in parse_elf()
|
/linux-6.12.1/arch/x86/boot/compressed/ |
D | misc.c | 298 Elf64_Phdr *phdrs, *phdr; in parse_elf() local 301 Elf32_Phdr *phdrs, *phdr; in parse_elf() 315 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 316 if (!phdrs) in parse_elf() 319 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 322 phdr = &phdrs[i]; in parse_elf() 342 free(phdrs); in parse_elf()
|
/linux-6.12.1/fs/proc/ |
D | kcore.c | 386 struct elf_phdr *phdrs, *phdr; in read_kcore_iter() local 388 phdrs = kzalloc(phdrs_len, GFP_KERNEL); in read_kcore_iter() 389 if (!phdrs) { in read_kcore_iter() 394 phdrs[0].p_type = PT_NOTE; in read_kcore_iter() 395 phdrs[0].p_offset = notes_offset; in read_kcore_iter() 396 phdrs[0].p_filesz = notes_len; in read_kcore_iter() 398 phdr = &phdrs[1]; in read_kcore_iter() 416 if (copy_to_iter((char *)phdrs + *fpos - phdrs_offset, tsz, in read_kcore_iter() 418 kfree(phdrs); in read_kcore_iter() 422 kfree(phdrs); in read_kcore_iter()
|
/linux-6.12.1/fs/ |
D | binfmt_elf_fdpic.c | 152 params->phdrs = kmalloc(size, GFP_KERNEL); in elf_fdpic_fetch_phdrs() 153 if (!params->phdrs) in elf_fdpic_fetch_phdrs() 156 retval = kernel_read(file, params->phdrs, size, &pos); in elf_fdpic_fetch_phdrs() 161 phdr = params->phdrs; in elf_fdpic_fetch_phdrs() 229 phdr = exec_params.phdrs; in load_elf_fdpic_binary() 471 kfree(exec_params.phdrs); in load_elf_fdpic_binary() 473 kfree(interp_params.phdrs); in load_elf_fdpic_binary() 749 if (params->phdrs[loop].p_type == PT_LOAD) in elf_fdpic_map_file() 798 phdr = params->phdrs; in elf_fdpic_map_file() 824 phdr = params->phdrs; in elf_fdpic_map_file() [all …]
|
D | binfmt_elf.c | 1834 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument 1873 fill_elf_header(elf, phdrs, in fill_note_info() 1878 fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); in fill_note_info()
|
/linux-6.12.1/include/linux/ |
D | elf-fdpic.h | 30 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */ member
|
/linux-6.12.1/drivers/remoteproc/ |
D | qcom_common.c | 279 const struct elf32_phdr *phdrs; in qcom_register_dump_segments() local 286 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_register_dump_segments() 289 phdr = &phdrs[i]; in qcom_register_dump_segments()
|
D | qcom_q6v5_mss.c | 1331 const struct elf32_phdr *phdrs; in q6v5_mpss_load() local 1372 phdrs = (struct elf32_phdr *)(ehdr + 1); in q6v5_mpss_load() 1375 phdr = &phdrs[i]; in q6v5_mpss_load() 1420 phdr = &phdrs[i]; in q6v5_mpss_load() 1639 const struct elf32_phdr *phdrs; in qcom_q6v5_register_dump_segments() local 1656 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_q6v5_register_dump_segments() 1660 phdr = &phdrs[i]; in qcom_q6v5_register_dump_segments()
|
/linux-6.12.1/tools/perf/util/ |
D | symbol-elf.c | 2143 struct list_head phdrs; member 2148 list_for_each_entry((p), &(k)->phdrs, node) 2170 list_add_tail(&p->node, &kci->phdrs); in kcore_copy_info__addnew() 2179 list_for_each_entry_safe(p, tmp, &kci->phdrs, node) { in kcore_copy__free_phdrs() 2569 INIT_LIST_HEAD(&kci.phdrs); in kcore_copy()
|