#include <sys/mount.h>
#include <sys/ckpt.h>
-
static int elf_loadphdrs(struct file *fp, Elf_Phdr *phdr, int numsegs);
static int elf_getnotes(struct lwp *lp, struct file *fp, size_t notesz);
static int elf_demarshalnotes(void *src, prpsinfo_t *psinfo,
int off = 0;
TRACE_ENTER;
+ error = elf_getnote(src, &off, "FreeBSD", NT_PRPSINFO,
+ (void **)&psinfo, sizeof(prpsinfo_t));
+ if (error)
+ goto done;
error = elf_getnote(src, &off, "FreeBSD", NT_PRSTATUS,
(void **)&status, sizeof(prstatus_t));
if (error)
(void **)&fpregset, sizeof(prfpregset_t));
if (error)
goto done;
- error = elf_getnote(src, &off, "FreeBSD", NT_PRPSINFO,
- (void **)&psinfo, sizeof(prpsinfo_t));
- if (error)
- goto done;
/*
* The remaining portion needs to be an integer multiple