Home
last modified time | relevance | path

Searched refs:phdrs (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/soc/qcom/
Dmdt_loader.c34 static ssize_t mdt_load_split_segment(void *ptr, const struct elf32_phdr *phdrs, in mdt_load_split_segment() argument
38 const struct elf32_phdr *phdr = &phdrs[segment]; in mdt_load_split_segment()
80 const struct elf32_phdr *phdrs; in qcom_mdt_get_size() local
88 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_get_size()
91 phdr = &phdrs[i]; in qcom_mdt_get_size()
129 const struct elf32_phdr *phdrs; in qcom_mdt_read_metadata() local
140 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_read_metadata()
145 if (phdrs[0].p_type == PT_LOAD) in qcom_mdt_read_metadata()
149 if ((phdrs[i].p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) { in qcom_mdt_read_metadata()
160 ehdr_size = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
[all …]
/linux-6.1.9/arch/parisc/boot/compressed/
Dmisc.c237 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.1.9/arch/x86/boot/compressed/
Dmisc.c284 Elf64_Phdr *phdrs, *phdr; in parse_elf() local
287 Elf32_Phdr *phdrs, *phdr; in parse_elf()
303 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
304 if (!phdrs) in parse_elf()
307 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
310 phdr = &phdrs[i]; in parse_elf()
330 free(phdrs); in parse_elf()
/linux-6.1.9/fs/proc/
Dkcore.c372 struct elf_phdr *phdrs, *phdr; in read_kcore() local
374 phdrs = kzalloc(phdrs_len, GFP_KERNEL); in read_kcore()
375 if (!phdrs) { in read_kcore()
380 phdrs[0].p_type = PT_NOTE; in read_kcore()
381 phdrs[0].p_offset = notes_offset; in read_kcore()
382 phdrs[0].p_filesz = notes_len; in read_kcore()
384 phdr = &phdrs[1]; in read_kcore()
402 if (copy_to_user(buffer, (char *)phdrs + *fpos - phdrs_offset, in read_kcore()
404 kfree(phdrs); in read_kcore()
408 kfree(phdrs); in read_kcore()
/linux-6.1.9/fs/
Dbinfmt_elf_fdpic.c152 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()
475 kfree(exec_params.phdrs); in load_elf_fdpic_binary()
477 kfree(interp_params.phdrs); in load_elf_fdpic_binary()
757 if (params->phdrs[loop].p_type == PT_LOAD) in elf_fdpic_map_file()
810 phdr = params->phdrs; in elf_fdpic_map_file()
836 phdr = params->phdrs; in elf_fdpic_map_file()
[all …]
Dbinfmt_elf.c1828 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
1871 fill_elf_header(elf, phdrs, in fill_note_info()
2057 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
2089 fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); in fill_note_info()
/linux-6.1.9/include/linux/
Delf-fdpic.h18 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */ member
/linux-6.1.9/drivers/remoteproc/
Dqcom_common.c263 const struct elf32_phdr *phdrs; in qcom_register_dump_segments() local
270 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_register_dump_segments()
273 phdr = &phdrs[i]; in qcom_register_dump_segments()
Dqcom_q6v5_mss.c1287 const struct elf32_phdr *phdrs; in q6v5_mpss_load() local
1328 phdrs = (struct elf32_phdr *)(ehdr + 1); in q6v5_mpss_load()
1331 phdr = &phdrs[i]; in q6v5_mpss_load()
1367 phdr = &phdrs[i]; in q6v5_mpss_load()
1586 const struct elf32_phdr *phdrs; in qcom_q6v5_register_dump_segments() local
1603 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_q6v5_register_dump_segments()
1607 phdr = &phdrs[i]; in qcom_q6v5_register_dump_segments()
/linux-6.1.9/tools/perf/util/
Dsymbol-elf.c1695 struct list_head phdrs; member
1700 list_for_each_entry((p), &(k)->phdrs, node)
1722 list_add_tail(&p->node, &kci->phdrs); in kcore_copy_info__addnew()
1731 list_for_each_entry_safe(p, tmp, &kci->phdrs, node) { in kcore_copy__free_phdrs()
2121 INIT_LIST_HEAD(&kci.phdrs); in kcore_copy()