Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o
Andreas Jaeger
aj@suse.de
Sun Jun 29 11:37:00 GMT 2008
I had the same problem on my PowerPC Linux machine and the workaround
I'm using now is to run make with the additional flag STAGE1_CFLAGS=-O.
The problem (thanks to Andreas Schwab and Michael Matz for help) is that
.glink and .text is too far away from each other (> 32 MB in the
non-optimized case) and therefore building of e.g. cc1-dummy fails.
Adding -Wl,--relax to the cc1-dummy build helped for that binary but I
found no way to get this properly into the Makefiles (and make
LDFLAGS="-Wl,--relax" gave an error in configure later on),
Andreas
--
Andreas Jaeger, Director Platform / openSUSE, aj@suse.de
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080629/c165e581/attachment.sig>
More information about the Gcc
mailing list