This is the mail archive of the gcc@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]

Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o


Hi,

When linking a very large (> 100MB executable) application on
powerpc-linux with trunk we get linker errors:

.../lib/gcc/powerpc-unknown-linux-gnu/4.4.0/crtbegin.o:(.fini+0x0):
relocation truncated to fit: R_PPC_REL24 against `.text'
.../lib/gcc/powerpc-unknown-linux-gnu/4.4.0/crtend.o:(.init+0x0):
relocation truncated to fit: R_PPC_REL24 against `.text' 

The application itself is compiled with -mlongcall,
would adding -mlongcall to crtstuff.c Makefile rule help here?
If no, what is the proper solution GCC-wise?

Thanks in advance,

Laurent


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