Yes, that's true as well. But I think that the chances of getting C++ to
work is greater with CodeSourcery's toolchain. I experienced the same
relocation problem when linking statically.

Harry

On Thu, Feb 28, 2008 at 1:23 PM, Gavin Lambert <[EMAIL PROTECTED]>
wrote:

> Quoth [EMAIL PROTECTED]:
> > I have made an hello world application in c++ that when run on the
> > board returns the message : BINFMT_FLAT: reloc outside program
> > 0xb6580000 (0 - 0x19504/0xdde0), killing hello!
> [...]
> > ucfront-g++ m68k-elf-g++ -m5307 -DCONFIG_COLDFIRE -Wl,--fatal-warnings
> > -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings -Wl,-
> > elf2flt -Wl,-move-rodata -msep-data -o hello hello.o -Wl,-Bstatic -
> > lstdc++ -Wl,-Bdynamic  -lsupc++
> >
> > * and for generate the executable, hello :
> > ucfront-g++ m68k-elf-g++ -m5307 -DCONFIG_COLDFIRE -Wl,--fatal-warnings
> > -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings -Wl,-
> > elf2flt -Wl,-move-rodata -msep-data -o hello hello.o -Wl,-Bstatic -
> > lstdc++ -Wl,-Bdynamic  -lsupc++
>
> You're compiling with XIP and shared libraries enabled.  That doesn't work
> with C++ (at least not with the default uClinux-dist toolchain).  If you
> go
> to your vendor makefile and disable these, then do a clean rebuild it
> ought
> to work.
>
>
>
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to