/openbmc/linux/drivers/soc/qcom/ |
H A D | mdt_loader.c | 80 const struct elf32_phdr *phdrs; in qcom_mdt_get_size() local 91 phdr = &phdrs[i]; in qcom_mdt_get_size() 129 const struct elf32_phdr *phdrs; in qcom_mdt_read_metadata() local 145 if (phdrs[0].p_type == PT_LOAD) in qcom_mdt_read_metadata() 160 ehdr_size = phdrs[0].p_filesz; in qcom_mdt_read_metadata() 208 const struct elf32_phdr *phdrs; in qcom_mdt_pas_init() local 223 phdr = &phdrs[i]; in qcom_mdt_pas_init() 283 if (!phdrs[i].p_filesz) in qcom_mdt_bins_are_split() 287 seg_end = phdrs[i].p_offset + phdrs[i].p_filesz; in qcom_mdt_bins_are_split() 320 phdr = &phdrs[i]; in __qcom_mdt_load() [all …]
|
/openbmc/u-boot/tools/ |
H A D | prelink-riscv.inc | 27 static void* get_offset_nn (void* data, Elf_Phdr* phdrs, size_t phnum, Elf_Addr addr) 31 for (p = phdrs; p < phdrs + phnum; ++p) 48 Elf_Phdr *phdrs = data + ehdr->e_phoff; 51 for (p = phdrs; p < phdrs + ehdr->e_phnum; ++p) { 68 rela_dyn = get_offset_nn(data, phdrs, ehdr->e_phnum, + dyn->d_un.d_ptr); 72 dynsym = get_offset_nn(data, phdrs, ehdr->e_phnum, + dyn->d_un.d_ptr); 83 void* buf = get_offset_nn(data, phdrs, ehdr->e_phnum, r->r_offset);
|
/openbmc/linux/arch/parisc/boot/compressed/ |
H A 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()
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | misc.c | 284 Elf64_Phdr *phdrs, *phdr; in parse_elf() local 287 Elf32_Phdr *phdrs, *phdr; in parse_elf() 301 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 302 if (!phdrs) in parse_elf() 305 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 308 phdr = &phdrs[i]; in parse_elf() 328 free(phdrs); in parse_elf()
|
/openbmc/linux/fs/proc/ |
H A 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()
|
/openbmc/linux/fs/ |
H A 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() 161 phdr = params->phdrs; in elf_fdpic_fetch_phdrs() 229 phdr = exec_params.phdrs; in load_elf_fdpic_binary() 474 kfree(exec_params.phdrs); in load_elf_fdpic_binary() 476 kfree(interp_params.phdrs); in load_elf_fdpic_binary() 805 phdr = params->phdrs; in elf_fdpic_map_file() 831 phdr = params->phdrs; in elf_fdpic_map_file() 935 phdr = params->phdrs; in elf_fdpic_map_file_constdisp_on_uclinux() 956 phdr = params->phdrs; in elf_fdpic_map_file_constdisp_on_uclinux() [all …]
|
H A D | binfmt_elf.c | 1856 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument 1895 fill_elf_header(elf, phdrs, in fill_note_info() 1900 fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); in fill_note_info()
|
/openbmc/linux/include/linux/ |
H A D | elf-fdpic.h | 30 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */ member
|
/openbmc/linux/drivers/remoteproc/ |
H A D | qcom_common.c | 277 const struct elf32_phdr *phdrs; in qcom_register_dump_segments() local 284 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_register_dump_segments() 287 phdr = &phdrs[i]; in qcom_register_dump_segments()
|
H A D | qcom_q6v5_mss.c | 1330 const struct elf32_phdr *phdrs; in q6v5_mpss_load() local 1371 phdrs = (struct elf32_phdr *)(ehdr + 1); in q6v5_mpss_load() 1374 phdr = &phdrs[i]; in q6v5_mpss_load() 1419 phdr = &phdrs[i]; in q6v5_mpss_load() 1638 const struct elf32_phdr *phdrs; in qcom_q6v5_register_dump_segments() local 1655 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_q6v5_register_dump_segments() 1659 phdr = &phdrs[i]; in qcom_q6v5_register_dump_segments()
|
/openbmc/openbmc/poky/meta/classes-global/ |
H A D | insane.bbclass | 137 phdrs = elf.run_objdump("-p", d) 141 for line in phdrs.split("\n"): 166 phdrs = elf.run_objdump("-p", d) 170 for line in phdrs.split("\n"): 400 phdrs = elf.run_objdump("-p", d) 405 for line in phdrs.split("\n"): 435 phdrs = elf.run_objdump("-p", d) 438 for line in phdrs.split("\n"): 619 phdrs = elf.run_objdump("-tw", d) 620 syms = re.finditer(ptrn, phdrs)
|
/openbmc/linux/tools/perf/util/ |
H A D | symbol-elf.c | 2071 struct list_head phdrs; member 2076 list_for_each_entry((p), &(k)->phdrs, node) 2098 list_add_tail(&p->node, &kci->phdrs); in kcore_copy_info__addnew() 2107 list_for_each_entry_safe(p, tmp, &kci->phdrs, node) { in kcore_copy__free_phdrs() 2497 INIT_LIST_HEAD(&kci.phdrs); in kcore_copy()
|