This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: where do I figure out "relocation R_X86_64_PC32" errors
On Sun, Sep 17, 2006 at 10:56:19PM -0400, sean wrote:
> H. J. Lu wrote:
> >It should be __attribute__((visibility("hidden"))).
I wish my fingers would type what I meant. :)
> Yup. That did it.
>
> Is this a generalizable lesson. That is, if I have another
> problem with -fPIC not allowing linking, I need to modify
> the attributes?
This particular problem isn't really anything to do with -fPIC, despite
the ld error telling you to recompile with -fPIC.. After all, you were
already compiling with -fPIC. GCC can't do much about dodgy asm.
And no, this fix is only applicable to this particular relocation type.
--
Alan Modra
IBM OzLabs - Linux Technology Centre