elf_getnotes
if ((error = elf_getnotes(lp, fp, phdr->p_filesz)) != 0)
static int elf_getnotes(struct lwp *lp, struct file *fp, size_t notesz);