On Sat, Jan 16, 2010 at 02:39:38PM -0700, Elden Crom wrote:
> A few questions:
> I need C++ for Coldfire/uClinux, 
>    a) Does it already work?
>         either in, cvs cvs.uclinux.org:/var/cvs repository?
>         or in the svn sources.blackfin.uclinux.org/svn/toolchain/trunk? 
> (perhaps it made the m68k tool chain work for C++ by side effect?)
>         The http://lists.uclibc.org/pipermail/uclibc/2009-April/042347.html 
> thread seems to have fixed it, for m68k using the bfin line?
> 
>    b) If not, where do I start?
>         PS I have the idiotic and very ugly way of making it work on m68k 
> with gcc 4.4.2, basically exposing the _GLOBAL_I_<yukyuk> publicly
>         and calling it from code...but that was before I even realized what 
> elf2flt is.
>        
> On a sort-of different note, mostly philosophical, why isn't elf2flt a 
> separate application that is run after ld? (and would complain if ld left out 
> the reloc tables (no -r?))
> I would seem easier to add a flag to gcc that says there is one more step to 
> go, than to do the fake out the ld, real-ld, ld.real stuff.  And what file 
> does gdb read? It must read the output of the normal ld since it still has 
> enough in it, so you need that file output basically all of the time anyway. 
> (This question may be better answered as an RTFM....point me to it and I'll 
> read it)

Well I am using gcc 4.3.3 and while c++ works, I can't get the C++
standard libraries to compile when cross compiling (which is of course
the only way one can compile for the coldfire).  Fortunately I have no
need for the C++ libs at all on the coldfire, just the compiler so it
works for me.

Older versions of gcc cross compile fine, but 4.3 really messed up the
autoconf scripts and now simply can not be cross compiled.  It needs to
do compile/link/run tests in some parts of the libraries.

elf2flt tells ld how to do its job, so it really does get involved in
the work.  gdb only supports the elf files, which is what the .gdb
file is.  It is almost certainly a different elf binary than you would
have gotten by running ld by itself though.

-- 
Len Sorensen
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to