This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why is g++ relocation error linking only showing when listing objects explicitly?


On 12/21/2012 02:36 PM, Mark Galeck (CW) wrote:
>> How do I turn the foobar.a into the foobar.so  ???
> 
> 
> OK, I got it
> 
>> g++ -Wl,--whole-archive foobar.a -o foobar.so
> 
> 
> 
> Except...  of course, again I get 
> 
> relocation truncated to fit: R_PPC_PLTREL24 against symbol...
> 
> BACK TO SQUARE ONE
> 
> 
> yes foobar.a is 140MB.  What to do??

I presume you're using "-mlongcall" everywhere.

We need to see the symbol and the place it's used.  You'll need
to use objdump --reloc.

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]