From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CmD9M-00051B-Lm for qemu-devel@nongnu.org; Wed, 05 Jan 2005 10:32:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CmD9M-00050z-7G for qemu-devel@nongnu.org; Wed, 05 Jan 2005 10:32:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CmD9M-00050w-5F for qemu-devel@nongnu.org; Wed, 05 Jan 2005 10:32:40 -0500 Received: from [65.74.133.9] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CmCxi-0007i6-6P for qemu-devel@nongnu.org; Wed, 05 Jan 2005 10:20:38 -0500 From: Paul Brook Subject: Re: [Qemu-devel] qemu-arm dynamically linked binary problem Date: Wed, 5 Jan 2005 15:20:35 +0000 References: <20041231182126.GA29948@xi.wantstofly.org> <20050105134908.GE20925@xi.wantstofly.org> In-Reply-To: <20050105134908.GE20925@xi.wantstofly.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501051520.35978.paul@codesourcery.com> 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 On Wednesday 05 January 2005 13:49, Lennert Buytenhek wrote: > On Wed, Jan 05, 2005 at 02:35:09PM +0100, Magnus Damm wrote: > > Hello, > > Hello, > > > > I have three sets of {ld-linux,libc} for little-endian ARM: one from > > > qemu-gnemul-0.5.1.tar.gz from the qemu site, one hand-built with gcc > > > 3.3.4 and glibc 2.3.3, and one hand-built with gcc 3.4.2 and glibc > > > 2.3.3. Yours works and mine don't. > > > > > > Is there anything special about your libraries? Which versions of > > > gcc/glibc did you use to build them? > > > > I have not much experience with ARM, but have you tried to use a > > toolchain built with crosstool? Maybe there are some patches there? > > Yes, I did build these with crosstool. I do have quite some experience > with ARM platforms, and the binaries that all these toolchains generate > do run just fine on 'real' ARM hardware. > > I just think there's something in qemu's ELF setup that the glibc 2.3 > dynamic linker doesn't like. It working with a gcc3.4-csl/glibc2.3.3 soft-float armv4 toolchain. > Inconsistency detected by ld.so: dymanic-link.h: 150: elf_get_dynamic_info: > Assertion `info[20]->d_un.d_val == 17 || info[20]->d_un.d_val == 7' failed! I remember seeing something like this. IIRC It was caused by the (recently fixed) rrx bug. Paul