[Top] [All Lists]

Re: linker problem: relocation truncated to fit

To: Petter Reinholdtsen <>
Subject: Re: linker problem: relocation truncated to fit
From: Wilbern Cobb <>
Date: Sun, 16 Sep 2001 19:50:08 -0300 (ADT)
Cc: <>
In-reply-to: <>
On Mon, 17 Sep 2001, Petter Reinholdtsen wrote:

> [Wilbern Cobb]
> > This is a `feature' of the MIPS toolchain. Global and static items <= n
> > bytes are placed into the small data or small bss sections instead of
> > the normal data or bss sections as an optimization. Excess items would
> > cause these linker errors.
> >
> > Pass the compiler the -Gn flag (default is 8 bytes), ie. -G4 should work
> > for most purposes.
> I tried -G4, -G2 and -G1 without any luck.  Even with -G1 there are still
> more than 9300 relocation messages.  (Do I need to compile all the object
> files again, by the way?  I've only tried to relink -- it takes 12 hours
> to compile :-( ))
> Unfortunately, my problem is with is a prorietary software product
> (Opera web browser), so I can not send you any source or object files.
> :-(

You most definately need to recompile all object files, sorry =).


<Prev in Thread] Current Thread [Next in Thread>