From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60086 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgOuR-00080M-K2 for qemu-devel@nongnu.org; Tue, 03 Aug 2010 17:20:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgOuH-00083I-Ru for qemu-devel@nongnu.org; Tue, 03 Aug 2010 17:20:19 -0400 Received: from b.mail.sonic.net ([64.142.19.5]:55085) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgOuH-000838-GQ for qemu-devel@nongnu.org; Tue, 03 Aug 2010 17:20:17 -0400 Message-ID: <4C587761.1040704@twiddle.net> Date: Tue, 03 Aug 2010 13:09:05 -0700 From: Richard Henderson MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] loader: pad kernel size when loaded from a uImage References: <1280454504-31224-1-git-send-email-hollis@penguinppc.org> <1280454504-31224-2-git-send-email-hollis@penguinppc.org> <20100730225641.GA20899@laped.lan> <20100801123554.GA29468@laped.lan> <20100802185707.GA4527@laped.lan> <20100802195645.GB4527@laped.lan> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hollis Blanchard Cc: "Edgar E. Iglesias" , qemu-devel@nongnu.org, kvm-ppc@vger.kernel.org On 08/02/2010 01:35 PM, Hollis Blanchard wrote: >> Of those archs, only 2 actually use the return value of load_uimage >> to decide where to place blobs. PPC and MB. MB doesn't want any >> magic applied to the return value. That leaves us with _ONE_ single >> arch that needs magic that IMO is broken. You are trying to guess the >> size of the loaded image's .bss area by adding a 16th of the uimage size? > > Accounting for BSS hardly counts as "magic", I think. :) A 1/16 factor is not "accounting", it's guessing i.e. magic. I'm not sure why the u-image format doesn't include the size of the bss, but my guess is that it's expecting the kernel to zero its bss segment at startup. File a bug with either the kernel and/or the u-boot project if you like. r~