Issue was related using gcc 4.2.4. I tested now gcc version 4.5.1 (Sourcery G++ Lite 2010.09-41), it works. Seems tha from a certain gcc version (>4.3.X) the erroneous behavior has been fixed.
thanks, angelo -------- Original Message -------- Subject: toolchain issues with g++ Date: Sat, 08 Jan 2011 10:58:48 +0100 From: Angelo Dureghello <angel...@gmail.com> To: uClinux development list <uclinux-dev@uclinux.org> hi all, i installed the most recent toolchain for coldfire, downloaded from uClinux site (http://www.uclinux.org/pub/uClinux/m68k-elf-tools/tools-20080626/m68k-uclinux-tools-20080626.sh). The toolchain works properly compiling uclinux. Then, i cross-compile a little program with: m68k-elf-g++ -Wl,-elf2flt -m5200 -msep-data -o dump dump.cc -lstdc++ -lc -lgcc and upload it with ftp MCF5307 coldfire uclinux dist. Once launched the program i get the following error: /home/angelo $ ./dump BINFMT_FLAT: reloc outside program 0x7265616d (0 - 0x50ec0/0x49700), killing dump! The program has nothing then a cout << "test\n"; any help is appreciated, thanks, angelo _______________________________________________ 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