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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux