From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: libxl: link error
Date: Fri, 13 Aug 2010 16:11:54 +0200 [thread overview]
Message-ID: <201008131611.55178.Christoph.Egger@amd.com> (raw)
In-Reply-To: <201008131537.09037.Christoph.Egger@amd.com>
On Friday 13 August 2010 15:37:08 Christoph Egger wrote:
> On Friday 13 August 2010 14:29:07 Ian Jackson wrote:
> > 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 ?
>
> This is not the problem but this triggers the issue.
>
> > 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.
>
> NetBSD uses the GNU ld. I don't know the differences
> in the linker scripts between Linux and NetBSD.
>
> > Or perhaps the problem is something else.
>
> Yes, it is a bug in libxl/Makefile related to my local blktap/noblktap
> change. I added the .c instead the .o file. Fixed in my local tree. Sorry
> for the noise.
Argh, I was too fast with sending this mail.
I had commented out the gcc visiblity macros in libxl_internal.h to
see if the problem goes away. Yes, it did and forgot to undo it when
I found and fixed this Makefile problem.
It is definitely something else. The tools/libxl/Makefile specifies -fPIC.
Maybe libxc must be compiled with -fPIC, too?
Christoph
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2010-08-13 14:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 8:57 libxl: link error Christoph Egger
2010-08-13 12:29 ` Ian Jackson
2010-08-13 13:37 ` Christoph Egger
2010-08-13 14:11 ` Christoph Egger [this message]
2010-08-13 14:15 ` Ian Jackson
2010-08-13 14:25 ` Olaf Hering
2010-08-13 14:52 ` Ian Jackson
2010-08-16 12:36 ` Gianni Tedesco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008131611.55178.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.