From: Ian Jackson Subject: Re: libxl: link error Date: Fri, 13 Aug 2010 13:29:07 +0100 Message-ID: <19557.14995.499107.257870@mariner.uk.xensource.com> References: <201008131057.21529.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201008131057.21529.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. Ian.