This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] libxl: link error

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] libxl: link error
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Fri, 13 Aug 2010 13:29:07 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 13 Aug 2010 05:29:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201008131057.21529.Christoph.Egger@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <201008131057.21529.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Christoph Egger writes ("[Xen-devel] libxl: link error"):
> I get this link error when linking libxl:
> ld: libxl_dom.o: relocation R_X86_64_PC32 against symbol 
> `hvm_build_set_params' can not be used when making a shared object; recompile 
> with -fPIC

I think this is probably a side effect of the addition of the
"_hidden" attribute (aka `__attribute__((visibility("hidden")))',
defined in libxl_internal.h) to this function ?

Can you explain what the notable differences are between the Linux and
BSD ELF linkers ?  Perhaps the BSD linker does not support this
attribute, in which case we should probably #ifdef it out.

Or perhaps the problem is something else.


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>