phdr 56 bsp/boot/common/elf.c Elf32_Phdr *phdr; phdr 71 bsp/boot/common/elf.c phdr = (Elf32_Phdr *)((paddr_t)ehdr + ehdr->e_ehsize); phdr 75 bsp/boot/common/elf.c load_base = (vaddr_t)ptokv(phdr->p_paddr); phdr 113 bsp/boot/common/elf.c Elf32_Phdr *phdr; phdr 119 bsp/boot/common/elf.c phdr = (Elf32_Phdr *)((paddr_t)ehdr + ehdr->e_phoff); phdr 124 bsp/boot/common/elf.c for (i = 0; i < (int)ehdr->e_phnum; i++, phdr++) { phdr 125 bsp/boot/common/elf.c if (phdr->p_type != PT_LOAD) phdr 128 bsp/boot/common/elf.c ELFDBG(("p_flags=%x\n", (int)phdr->p_flags)); phdr 129 bsp/boot/common/elf.c ELFDBG(("p_align=%x\n", (int)phdr->p_align)); phdr 130 bsp/boot/common/elf.c ELFDBG(("p_paddr=%x\n", phdr->p_paddr)); phdr 136 bsp/boot/common/elf.c if (phdr->p_flags & PF_X) { phdr 138 bsp/boot/common/elf.c m->text = phdr->p_vaddr; phdr 139 bsp/boot/common/elf.c m->textsz = (size_t)phdr->p_memsz; phdr 142 bsp/boot/common/elf.c m->data = phdr->p_vaddr; phdr 143 bsp/boot/common/elf.c m->datasz = (size_t)phdr->p_filesz; phdr 145 bsp/boot/common/elf.c (size_t)(phdr->p_memsz - phdr->p_filesz); phdr 148 bsp/boot/common/elf.c if (phdr->p_filesz > 0) { phdr 149 bsp/boot/common/elf.c memcpy((char *)load_base, img + phdr->p_offset, phdr 150 bsp/boot/common/elf.c (size_t)phdr->p_filesz); phdr 152 bsp/boot/common/elf.c load_base, (int)phdr->p_filesz)); phdr 154 bsp/boot/common/elf.c if (!(phdr->p_flags & PF_X)) { phdr 160 bsp/boot/common/elf.c load_base += phdr->p_memsz; phdr 61 usr/server/exec/exec_elf.c Elf32_Phdr *phdr; phdr 66 usr/server/exec/exec_elf.c phdr = (Elf32_Phdr *)((u_long)ehdr + ehdr->e_phoff); phdr 67 usr/server/exec/exec_elf.c if (phdr == NULL) phdr 70 usr/server/exec/exec_elf.c for (i = 0; i < (int)ehdr->e_phnum; i++, phdr++) { phdr 71 usr/server/exec/exec_elf.c if (phdr->p_type != PT_LOAD) phdr 74 usr/server/exec/exec_elf.c addr = (void *)phdr->p_vaddr; phdr 75 usr/server/exec/exec_elf.c size = phdr->p_memsz; phdr 82 usr/server/exec/exec_elf.c if (vm_map(task, (void *)phdr->p_vaddr, size, &mapped) != 0) phdr 84 usr/server/exec/exec_elf.c if (phdr->p_filesz > 0) { phdr 85 usr/server/exec/exec_elf.c if (lseek(fd, (off_t)phdr->p_offset, SEEK_SET) phdr 88 usr/server/exec/exec_elf.c if (read(fd, mapped, phdr->p_filesz) < 0) phdr 95 usr/server/exec/exec_elf.c if (phdr->p_flags & PF_X) {