Lines Matching defs:pnote
2151 int32_t *osrel, const Elf_Phdr *pnote)
2160 if (pnote == NULL || pnote->p_filesz > PAGE_SIZE)
2163 if (pnote->p_offset > PAGE_SIZE ||
2164 pnote->p_filesz > PAGE_SIZE - pnote->p_offset) {
2166 buf = malloc(pnote->p_filesz, M_TEMP, M_WAITOK);
2168 error = vn_rdwr(UIO_READ, imgp->vp, buf, pnote->p_filesz,
2169 pnote->p_offset, UIO_SYSSPACE, IO_NODELOCKED,
2177 note_end = (const Elf_Note *)(buf + pnote->p_filesz);
2180 pnote->p_offset);
2182 pnote->p_offset + pnote->p_filesz);