From owner-freebsd-stable@FreeBSD.ORG Sun May 24 16:27:03 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EA7E1065704 for ; Sun, 24 May 2009 16:27:03 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mx01.netsrc.de (mx01.netsrc.de [89.107.71.100]) by mx1.freebsd.org (Postfix) with ESMTP id C45C48FC12 for ; Sun, 24 May 2009 16:27:02 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from [10.1.1.83] (dslb-088-065-062-045.pools.arcor-ip.net [88.65.62.45]) by mx01.netsrc.de (Postfix) with ESMTP id D1E08192FD9 for ; Sun, 24 May 2009 18:12:31 +0200 (CEST) Message-Id: From: Bernhard Schmidt To: freebsd-stable@freebsd.org Content-Type: multipart/mixed; boundary=Apple-Mail-4-733862837 Mime-Version: 1.0 (Apple Message framework v935.3) Date: Sun, 24 May 2009 18:12:31 +0200 X-Mailer: Apple Mail (2.935.3) Subject: Re: Compiling world+kernel in RELENG_7 right now | releng_7 tinderbox X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2009 16:27:03 -0000 --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--