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
[-- Attachment #1 --]
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
[-- Attachment #2 --]
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D7838C6B-9764-4BC7-86B6-2FF1E6F3A458>
