MIPS linker error for C++

gregory.menke at gsfc.nasa.gov gregory.menke at gsfc.nasa.gov
Fri Aug 22 17:41:58 UTC 2003


mikeci at acm.org writes:
 > Hi!
 > 
 > Here is the error, and it occures only for C++.
 > 
 > gcc is 3.2.3
 > 
 > 
 > mips-rtems-gcc (GCC) 3.2.3 (OAR Corporation
 > gcc-3.2.3-20030507a/newlib-1.11.0-20030605-4)
 > Copyright (C) 2002 Free Software Foundation, Inc.
 > This is free software; see the source for copying conditions.  There is NO
 > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 > 
 > 
 > binutils 2.13.2.1 latest available from rtems.com. I am using modified
 > P4000 BSP, with mips32 model, little endian. Here is the exact error:
 > 
 > /opt/rtems/lib/gcc-lib/mips-rtems/3.2.3/soft-float/el/libstdc++.a(tinfo2.o):
 > In function
 > `__cxxabiv1::__pointer_type_info::__pointer_catch(__cxxabiv1::__pbase_type_info
 > const*, void**, unsigned) const':
 > /home/rtems/src/packages/BUILD/mips-rtems-gcc-newlib/build/mips-rtems/soft-float/el/libstdc++-v3/libsupc++/../../../../../../gcc-3.2.3/libstdc++-v3/libsupc++/tinfo2.cc:155:
 > relocation truncated to fit: R_MIPS_GPREL16 typeinfo for void
 > collect2: ld returned 1 exit status
 > 

This is amost certainly a linker script error.  Contrast your linkcmds
and bsp_spec with those on the Mongoose BSP- I know C++ & .init/.fini
works there.

Gregm




More information about the users mailing list