MIPS linker error for C++

Joel Sherrill joel.sherrill at OARcorp.com
Fri Aug 22 19:12:45 UTC 2003

mikeci at acm.org wrote:

>>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.
> Hi!
> I tried with Mongoose linkcmds and bsp_specs, but no luck. What I don't
> understand is how this _init and _fini symbols are defined. You have
> section .init and .fini in crtbegin.o but no symbols _init or _fini. They
> must be functions which call constructors or destructors, but they should
> be a nop for C. Is this right? I am using bsp_specs and linkcmds from
> P4000 BSP. I guess that this linker script file is correct? For now this
> linker error is not a problem, since I don't use C++, but I would like to
> resolve the problem with _init and _fini.

Are you linking with crtbegin.o, crtend.o, crti.o, and crtn.o
in your bsp_specs?

> Regards
> Ivica

Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the users mailing list