On Sun, Jun 29, 2008 at 03:08:43PM +0200, Andreas Schwab wrote:
> David Edelsohn <[EMAIL PROTECTED]> writes:
> 
> >>>>>> 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 ?
> 
> It should be put in a host_xmake_file fragment.

I'm not a build machinery expert - if anybody has a patch, I'll happily test it,
I'm building on Linux/Powerpc64.

Adding the above line to rs6000/x-linux64 did not help me.  Btw.
we would need it for other files - like gnat1 - as well,

Andreas
-- 
 Andreas Jaeger, Director Platform / openSUSE, [EMAIL PROTECTED]
  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

Reply via email to