This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o
>>>>> Andreas Jaeger writes:
Andreas> I had the same problem on my PowerPC Linux machine and the workaround
Andreas> I'm using now is to run make with the additional flag STAGE1_CFLAGS=3D-O.
Andreas> The problem (thanks to Andreas Schwab and Michael Matz for help) is that
Andreas> .glink and .text is too far away from each other (> 32 MB in the
Andreas> non-optimized case) and therefore building of e.g. cc1-dummy fails.
Andreas> Adding -Wl,--relax to the cc1-dummy build helped for that binary but I
Andreas> found no way to get this properly into the Makefiles (and make
Andreas> LDFLAGS=3D"-Wl,--relax" gave an error in configure later on),
Can you add
cc1-dummy$(exeext) : override LDFLAGS += -Wl,--relax
to an appropriate tmake_file in gcc/config/rs6000 ?
David