--- src/sys/boot/common/load_elf.c 2007/11/25 18:10:07 1.6 +++ src/sys/boot/common/load_elf.c 2008/09/02 17:21:12 1.7 @@ -104,7 +104,7 @@ __elfN(loadfile)(char *filename, u_int64 */ if (filename == NULL) /* can't handle nameless */ return(EFTYPE); - if ((ef.fd = open(filename, O_RDONLY)) == -1) + if ((ef.fd = rel_open(filename, O_RDONLY)) == -1) return(errno); ef.firstpage = malloc(PAGE_SIZE); if (ef.firstpage == NULL) {