From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gg6o3-0003FT-R7 for qemu-devel@nongnu.org; Fri, 03 Nov 2006 16:42:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gg6o0-00038A-TW for qemu-devel@nongnu.org; Fri, 03 Nov 2006 16:42:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gg6o0-000381-Ou for qemu-devel@nongnu.org; Fri, 03 Nov 2006 16:42:28 -0500 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gg6o0-0004dA-KR for qemu-devel@nongnu.org; Fri, 03 Nov 2006 16:42:28 -0500 From: Paul Brook Subject: Re: [Qemu-devel] Compiling qemu as position-independent code on an x86_64 linux host Date: Fri, 3 Nov 2006 21:42:18 +0000 References: <61EB814CF63D9642BA6DD5B76DB0894306DA81@mx-met-exch0.scisys.co.uk> In-Reply-To: <61EB814CF63D9642BA6DD5B76DB0894306DA81@mx-met-exch0.scisys.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611032142.19215.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: Paul Robinson On Friday 03 November 2006 18:15, Paul Robinson wrote: > Hi guys, > > I'm trying to use parts of qemu in an application that must be compiled > as a shared library (i.e. a .so file). > The code must be compiled with the -fPIC option otherwise the linker > refuses to create a .so file > but doing this causes dyngen to stop with the error: > ../dyngen -o op.h op.o > dyngen: unsupported X86_64 relocation (9) More likely you just need to implement whetever relocation it's complaining about. Paul