From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhqhX-0004ML-6W for qemu-devel@nongnu.org; Sat, 28 Apr 2007 13:27:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhqhW-0004LA-7m for qemu-devel@nongnu.org; Sat, 28 Apr 2007 13:27:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhqhW-0004L0-1b for qemu-devel@nongnu.org; Sat, 28 Apr 2007 13:27:14 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HhqbW-00075R-Iz for qemu-devel@nongnu.org; Sat, 28 Apr 2007 13:21:02 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Sparc-linux-user problem Date: Sat, 28 Apr 2007 18:20:55 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704281820.57259.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 Cc: Blue Swirl 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? 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). Configuring with --enable-static usually works around the problem. Paul