Lines Matching refs:elf_phdata
239 struct elf_phdr *elf_phdata = NULL; in load_irix_interp() local
274 elf_phdata = (struct elf_phdr *) in load_irix_interp()
278 if(!elf_phdata) { in load_irix_interp()
289 kfree(elf_phdata); in load_irix_interp()
294 (char *) elf_phdata, in load_irix_interp()
298 dump_phdrs(elf_phdata, interp_elf_ex->e_phnum); in load_irix_interp()
301 eppnt = elf_phdata; in load_irix_interp()
363 kfree(elf_phdata); in load_irix_interp()
389 kfree(elf_phdata); in load_irix_interp()
599 struct elf_phdr *elf_phdata, *elf_ihdr, *elf_ephdr; in load_irix_binary() local
624 elf_phdata = (struct elf_phdr *) kmalloc(size, GFP_KERNEL); in load_irix_binary()
625 if (elf_phdata == NULL) { in load_irix_binary()
630 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *)elf_phdata, size); in load_irix_binary()
635 dump_phdrs(elf_phdata, elf_ex.e_phnum); in load_irix_binary()
640 switch(elf_phdata[i].p_type) { in load_irix_binary()
643 elf_ihdr = &elf_phdata[i]; in load_irix_binary()
647 elf_ephdr = &elf_phdata[i]; in load_irix_binary()
666 &interp_elf_ex, elf_phdata, bprm, in load_irix_binary()
709 map_executable(bprm->file, elf_phdata, elf_ex.e_phnum, &elf_stack, in load_irix_binary()
714 retval = map_interpreter(elf_phdata, &interp_elf_ex, in load_irix_binary()
729 kfree(elf_phdata); in load_irix_binary()
793 kfree (elf_phdata); in load_irix_binary()
803 struct elf_phdr *elf_phdata = NULL; in load_irix_library() local
827 elf_phdata = (struct elf_phdr *) in load_irix_library()
829 if (elf_phdata == NULL) in load_irix_library()
832 retval = kernel_read(file, elf_ex.e_phoff, (char *) elf_phdata, in load_irix_library()
837 if((elf_phdata + i)->p_type == PT_LOAD) j++; in load_irix_library()
840 kfree(elf_phdata); in load_irix_library()
844 while(elf_phdata->p_type != PT_LOAD) elf_phdata++; in load_irix_library()
849 elf_phdata->p_vaddr & 0xfffff000, in load_irix_library()
850 elf_phdata->p_filesz + (elf_phdata->p_vaddr & 0xfff), in load_irix_library()
853 elf_phdata->p_offset & 0xfffff000); in load_irix_library()
856 k = elf_phdata->p_vaddr + elf_phdata->p_filesz; in load_irix_library()
859 if (error != (elf_phdata->p_vaddr & 0xfffff000)) { in load_irix_library()
860 kfree(elf_phdata); in load_irix_library()
866 len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; in load_irix_library()
867 bss = elf_phdata->p_memsz + elf_phdata->p_vaddr; in load_irix_library()
873 kfree(elf_phdata); in load_irix_library()