Searched refs:elf_ppnt (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 532 struct elf_phdr *elf_ppnt; in load_elf_sections() local 544 for (i = 0, elf_ppnt = phdr; i < hdr->e_phnum; i++, elf_ppnt++) { in load_elf_sections() 549 if (elf_ppnt->p_type != PT_LOAD) { in load_elf_sections() 553 if (elf_ppnt->p_flags & PF_R) { in load_elf_sections() 556 if (elf_ppnt->p_flags & PF_W) { in load_elf_sections() 559 if (elf_ppnt->p_flags & PF_X) { in load_elf_sections() 563 error = target_mmap(TARGET_ELF_PAGESTART(rbase + elf_ppnt->p_vaddr), in load_elf_sections() 564 (elf_ppnt->p_filesz + in load_elf_sections() 565 TARGET_ELF_PAGEOFFSET(elf_ppnt->p_vaddr)), in load_elf_sections() 569 (elf_ppnt->p_offset - in load_elf_sections() [all …]
|
/openbmc/linux/fs/ |
H A D | binfmt_elf.c | 829 struct elf_phdr *elf_ppnt, *elf_phdata, *interp_elf_phdata = NULL; in load_elf_binary() local 864 elf_ppnt = elf_phdata; in load_elf_binary() 865 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary() 868 if (elf_ppnt->p_type == PT_GNU_PROPERTY) { in load_elf_binary() 869 elf_property_phdata = elf_ppnt; in load_elf_binary() 873 if (elf_ppnt->p_type != PT_INTERP) in load_elf_binary() 881 if (elf_ppnt->p_filesz > PATH_MAX || elf_ppnt->p_filesz < 2) in load_elf_binary() 885 elf_interpreter = kmalloc(elf_ppnt->p_filesz, GFP_KERNEL); in load_elf_binary() 889 retval = elf_read(bprm->file, elf_interpreter, elf_ppnt->p_filesz, in load_elf_binary() 890 elf_ppnt->p_offset); in load_elf_binary() [all …]
|