John, Am Mittwoch, 28. Oktober 2009 21:13:38 schrieb John B Moore: > We currently have a platform which uses an M5233 nommu Coldfire with > uClinux using a 2.6.17 kernel with uClibc 0.9.27, bFLT executables and no > shared library support. The compiler set we are using is the 4.1.1 > compiler set as distributed from the uclinux.org website and it works well > for programming in C. Recently we have a need to program in C++ so I have > been trying to get the g++ compiler to generate a valid executable. The > compile works fine but when I run, I always get : > > BINFMT_FLAT: reloc outside program 0xff9b0d01 (0 - 0x84f54/0x51060), > killing helloworld! > > and a SIGSEGV. The application is simply hello world as follows: > > #include <iostream>
Oh! iostream! So you need the global constructors to work! Is your linker including the crtbegin and crtend libs as first and last objects in the list of linked files? Check in the ELF file! regards Wolfgang -- Wahre Worte sind nicht schön. Schöne Worte sind nicht wahr. (Laotse) _______________________________________________ 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