From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfWm6-00065X-OC for qemu-devel@nongnu.org; Wed, 10 Oct 2007 04:18:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfWm6-00064l-CX for qemu-devel@nongnu.org; Wed, 10 Oct 2007 04:18:38 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfWm6-0000XW-6O for qemu-devel@nongnu.org; Wed, 10 Oct 2007 04:18:38 -0400 Received: from [172.17.17.9] (gw.netgem.com [195.68.2.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 4B67333176 for ; Wed, 10 Oct 2007 10:18:34 +0200 (CEST) Message-ID: <470C8AD9.6000002@bellard.org> Date: Wed, 10 Oct 2007 10:18:33 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] RFC: fix run of 32 bits Linux executables on 64 bits targets References: <1192002128.9976.186.camel@rapid> In-Reply-To: <1192002128.9976.186.camel@rapid> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org J. Mayer wrote: > Following the patches done for elfload32, it appeared to me that there > were still problems that would prevent 32 bits executables to run on 64 > bits target in linux user mode emulation. > [...] Are you sure it is a good idea to try to add 32 bit executable support to a 64 bit target ? In the end you will need to write a 64 bit to 32 bit linux syscall converter which would mean duplicating all the linux-user code of the corresponding 32 bit target (think of ioctls with strutures, signals frames, etc...). Fabrice.