This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o
- From: Laurent GUERBY <laurent at guerby dot net>
- To: gcc <gcc at gcc dot gnu dot org>, Peter Bergner <bergner at vnet dot ibm dot com>
- Date: Mon, 16 Jun 2008 13:27:58 +0200
- Subject: 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