From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hhtl5-0003hu-Il for qemu-devel@nongnu.org; Sat, 28 Apr 2007 16:43:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hhtl3-0003hi-77 for qemu-devel@nongnu.org; Sat, 28 Apr 2007 16:43:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hhtl3-0003hf-19 for qemu-devel@nongnu.org; Sat, 28 Apr 2007 16:43:05 -0400 Received: from mercury.easily.co.uk ([212.53.64.51]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hhtf2-0007Y9-O1 for qemu-devel@nongnu.org; Sat, 28 Apr 2007 16:36:52 -0400 Received: from [86.129.77.13] (HELO c1358217.kevquinn.com) by mercury.easily.co.uk (CommuniGate Pro SMTP 4.0.6) with ESMTP id 215441736 for qemu-devel@nongnu.org; Sat, 28 Apr 2007 21:35:39 +0100 Date: Sat, 28 Apr 2007 21:39:12 +0100 From: "Kevin F. Quinn" Subject: Re: [Qemu-devel] Sparc-linux-user problem Message-ID: <20070428213912.3bc3ce6b@c1358217.kevquinn.com> In-Reply-To: <200704281820.57259.paul@codesourcery.com> References: <200704281820.57259.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_HO+n8bM7gt7ESOEhXT.M=0f"; protocol="application/pgp-signature"; micalg=PGP-SHA1 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 --Sig_HO+n8bM7gt7ESOEhXT.M=0f Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 28 Apr 2007 18:20:55 +0100 Paul Brook wrote: > On Saturday 28 April 2007, Blue Swirl wrote: > > Hi, > > > > I'm investigating why Sparc32 user emulator breaks when linked with > > -lrt. It seems that other libraries also cause the problem, for > > example -lm -ldl -lX11 -lbfd -lslang is okay, but -lm -ldl -lX11 > > -lbfd -lslang -lglib-2.0 segfaults just like -lm -lrt. If just > > address space conflict was the issue, I'd think 12 megs libbfd > > would trigger the problem instead of 64k librt. > > > > Any ideas? >=20 > I've never got this to work reliably on either x86 or amd64 hosts. I > get mysterious segfaults in the depths of libc. My guess is that the > tricks qemu uses to link itself as a shared library are confusing > things (possibly the TLS initialisation). I don't suppose using gcc/binutils -fPIE/-pie would achieve qemu's goals, thus avoiding the need to specify bespoke ld scripts? --=20 Kevin F. Quinn --Sig_HO+n8bM7gt7ESOEhXT.M=0f Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGM7D09G2S8dekcG0RAuF5AKDraQcdqCGp5/QWBroYR3rFYffW4gCfe/Ub jIU+fn/pHRmO0FIRsa/U2gk= =NwNx -----END PGP SIGNATURE----- --Sig_HO+n8bM7gt7ESOEhXT.M=0f--