[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Compiling qemu as position-independent code on an x86_6
From: |
Daniel Jacobowitz |
Subject: |
Re: [Qemu-devel] Compiling qemu as position-independent code on an x86_64 linux host |
Date: |
Fri, 3 Nov 2006 23:21:50 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, Nov 03, 2006 at 09:42:18PM +0000, Paul Brook wrote:
> 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.
This is dyngen we're talking about - presumably that isn't the bit that
needs to be PIC? Looks to me like the op file was compiled with the
PIC CFLAGS.
--
Daniel Jacobowitz
CodeSourcery