From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhIh0-0002Dc-VU for qemu-devel@nongnu.org; Tue, 16 Feb 2010 03:22:02 -0500 Received: from [199.232.76.173] (port=45873 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhIgz-0002DT-Kd for qemu-devel@nongnu.org; Tue, 16 Feb 2010 03:22:01 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhIgy-0005LK-Bj for qemu-devel@nongnu.org; Tue, 16 Feb 2010 03:22:01 -0500 Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]:48548) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhIgx-0005LG-Vd for qemu-devel@nongnu.org; Tue, 16 Feb 2010 03:22:00 -0500 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20100216082156.CZVC4204.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Tue, 16 Feb 2010 08:21:56 +0000 Received: from miranda.arrow ([213.107.24.213]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20100216082147.FXMU13254.aamtaout01-winn.ispmail.ntl.com@miranda.arrow> for ; Tue, 16 Feb 2010 08:21:47 +0000 Received: from sdb by miranda.arrow with local (Exim 4.63) (envelope-from ) id 1NhIgj-0006Ao-9z for qemu-devel@nongnu.org; Tue, 16 Feb 2010 08:21:45 +0000 Date: Tue, 16 Feb 2010 08:21:45 +0000 From: Stuart Brady Subject: Re: [Qemu-devel] qemu-ppc can't run static uClibc binaries. Message-ID: <20100216082145.GA23689@miranda.arrow> References: <201002110520.07620.rob@landley.net> <201002140236.28953.rob@landley.net> <20100214154100.nljy2r17hcg840wg@imap.suse.de> <201002150510.22819.rob@landley.net> <8DF180F8-A6F3-4306-9B02-C6870156ADB1@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8DF180F8-A6F3-4306-9B02-C6870156ADB1@suse.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Feb 15, 2010 at 12:19:24PM +0100, Alexander Graf wrote: > So what you really want is something like > > #ifdef CONFIG_LINUX_USER > /* exec return value is always 0 */ > env->gpr[3] = 0; > #endif > > just after the #endif in your patch. If you had inlined your patch I could've commented it there. I've clearly misunderstood something, but isn't CONFIG_LINUX_USER always going to be defined when building linux-user/elfload.c, and doesn't CONFIG_BSD relate to the host that you're building for, not the target? I can't remember whether Jocelyn was interested in running BSD binaries under Linux or under BSD. The former seems reasonable, although even if that did work for PPC at one point, I doubt that's still the case... Cheers, -- Stuart Brady