From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ic0QX-0003oL-M8 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:09:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ic0QW-0003nv-5K for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:09:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ic0QV-0003nq-V2 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:09:47 -0400 Received: from bangui.magic.fr ([195.154.194.245]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ic0QV-000689-E9 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 11:09:47 -0400 Subject: Re: [Qemu-devel] RFC: cleanups in ELF loader From: "J. Mayer" In-Reply-To: <20070930133839.GD13317@networkno.de> References: <1191116355.29900.86.camel@rapid> <20070930133839.GD13317@networkno.de> Content-Type: text/plain Date: Sun, 30 Sep 2007 17:09:23 +0200 Message-Id: <1191164963.29900.141.camel@rapid> Mime-Version: 1.0 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: Thiemo Seufer Cc: qemu-devel@nongnu.org On Sun, 2007-09-30 at 14:38 +0100, Thiemo Seufer wrote: > J. Mayer wrote: > > Following what I've done in the syscalls emulation routines, it appeared > > to me that there seems to be a lot of confusions between host and target > > long in the ELF loader. > > But the ELF fields are tied to the ELFCLASS of the supported ABI, not to > the register width of the machine emulation. If anything they should > become the ELF types. > > (Your approach will e.g. break down for MIPS N32, where "long" is smaller > thant the register width, and the ABI uses ELFCLASS32.) OK, I will try to rework this. [...] -- J. Mayer Never organized