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]

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


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

Attachment: pgp00000.pgp
Description: PGP signature


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