Hi Wolfgang,
I have tried your suggestion, to add ""-fpic -msingle-pic-base" for linker, but
C++ construction is still not working. 

Hi Erwin,
>It's generally true that you have to supply -fpic -msingle-pic->base to
>the linker. With the 3.4.4 snapgear toolchain, this won't help >either,
>because the compilers libs are compiled without -msingle-pic-base. >There
>are other reasons why c++ won't work. As far as I remember, >ucfront-g++
>doesn't supply the right libraries for calling the
>constructors/destructors, and the elf2flt ld script is for old >compilers
>with a different format of the ctor table.

>From your comments I guess there are 3 problems causing that my C++ 
>construction is not working.
1. ucfront-g++ doesn't supply the right libraries for calling 
constructors/destructors.
2. elf2flt ld script is for old compilers.
3. gcc 3.4.4 compilers libs ae compiled without -msingle-pic-base.
Actually the package I am working on is "uClinux-dist-20070130.tar.gz" for 
source package, and "arm-linux-tools-20061213.tar.gz" for oolchain. And my 
testing platform is using a no-MMU CPU. "ucfront-g++" tool
is from "uClinux-dist-
20070130.tar.gz", gcc 3.4.4 libs and elf2flt.ld is from "arm-linux-tools-
20061213.tar.gz" which seems to have only binary package. Could you be kindly
to help tell me how to modify my environment to solving above 3 problems and to 
make C++ construction/destruction work? Thanks a
lot.

Regards,

Nero
_______________________________________________
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