Date: Sun, 24 May 2009 18:12:31 +0200 From: Bernhard Schmidt <bschmidt@techwires.net> To: freebsd-stable@freebsd.org Subject: Re: Compiling world+kernel in RELENG_7 right now | releng_7 tinderbox Message-ID: <D7838C6B-9764-4BC7-86B6-2FF1E6F3A458@techwires.net>
next in thread | raw e-mail | index | archive | help
--Apple-Mail-4-733862837 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi, > /obj/amd64/src/sys/boot/i386/zfsboot/../btx/lib/crt0.o zfsboot.o sio.o \ /obj/amd64/src/tmp/usr/lib/libstand.a objcopy -S -O binary zfsboot.out zfsboot.bin btxld -v -E 0x2000 -f bin -b /obj/amd64/src/ sys/boot/i386/zfsboot/../btx/btx/btx -l zfsboot.ldr \ -o zfsboot.ld -P 1 zfsboot.bin > btxld: zfsboot.ldr: Invalid argument > *** Error code 2 Attached diff fixes that issue for me. -- Regards, Bernhard Schmidt --Apple-Mail-4-733862837 Content-Disposition: attachment; filename=btxld.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="btxld.diff" Content-Transfer-Encoding: 7bit Index: btxld.c =================================================================== --- btxld.c (.../stable/7/usr.sbin/btxld) (revision 192688) +++ btxld.c (.../head/usr.sbin/btxld) (revision 192688) @@ -336,6 +336,8 @@ if (sb.st_size > MAXU32) errx(1, "%s: Too big", fname); hdr->size = sb.st_size; + if (!hdr->size) + return; if ((p = mmap(NULL, hdr->size, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) err(2, "%s", fname); --Apple-Mail-4-733862837--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D7838C6B-9764-4BC7-86B6-2FF1E6F3A458>