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

Mark Galeck (CW) mgaleck@Brocade.com
Fri Dec 21 14:57:00 GMT 2012


OK.  Thank you for help

> ls -l foobar.a
-rw-r--r-- 1 mgaleck 140132266 Dec 21 06:10 foobar.a

>g++ -shared -fPIC -mlongcall -Wl,--whole-archive foobar.a

(...)
crtbeginS.o: In function `__do_global_dtors_aux':
crtstuff.c:(.text+0x54): relocation truncated to fit: R_PPC_PLTREL24 against symbol `__cxa_finalize@@GLIBC_2.1.3' defined in .text section in (...)/libc.so.6+8000

> objdump --reloc foobar.a | grep cxa_finalize
> objdump --reloc foobar.a | grep dtors_aux
>


??  what do you want me to call objdump --reloc with??



More information about the Gcc-help mailing list