MIPS linker error with C++

Ralf Corsepius corsepiu at faw.uni-ulm.de
Fri Aug 22 11:17:41 UTC 2003


On Fri, 2003-08-22 at 12:46, Joel Sherrill wrote:
> Ralf Corsepius wrote:
> 
> >On Fri, 2003-08-22 at 01:16, mikeci at acm.org wrote:
> >  
> >
> >>Hi!
> >>
> >>When I try to link cdtest program this is the linker error:
> >>
> >>relocation truncated to fit: R_MIPS_GPREL16
> >>
> >>
> >>Is there a solution for this problem?
> >>    
> >>
> >Which version of binutils, gcc and RTEMS are you using? 
> >Which BSP?
> >  
> >
> I remember that my early tests with gcc 3.2.x an binutils 2.14 caused the
> mongoosev's start code to not even compile.  Obviously this one is 
> different.
That's why I am asking. 

For me, the genmongoosev builds without any complaints using
binutils-2.13.2.1 or vanilla binutils-2.14 in conjunction with
gcc-rtems-3.2.3.

> 
> This error combined with the plothora of new warnings generated by
> gcc 3.3.x is one reason I wanted to stay with the current tool revisions
> for the release branch.
I suspect the reporter 
* trying to use some "non-rtems"/"generic" binutils and gcc
* to be facing a side-effect of the mips3 mess in gcc.
* Using an unsupported configuration in his *.cfg

Ralf





More information about the users mailing list