From: Pierre Vidaillac (pvidaillac@asphatech.com)
Date: Fri Aug 23 2002 - 14:18:43 EDT
AAARGH !
ASCII mode from ftp server from which I download binaries...:(
Just had to switch to binary. Thank you for the 5307 advice.
Pierre
On August 23, 2002 09:34 am, you wrote:
> Jivin Pierre Vidaillac lays it down ...
>
> > Hi All,
> >
> > I have been able to reproduce my problem (see message posted 2 days ago)
> > with a very short test program.
> >
> > I am working on a Coldfire 5272 platform using m68k-elf-tools version
> > 20020410 and uClinux dist 20020701. my app crash with messages :
> >
> > /mnt/flashdisk/bin> test
> > pid 63: failed 11
> >
> > and
> >
> > /> BINFMT_FLAT: reloc outside program 0x1ec00 (0 - 0x1cc2238/0x1b0).
> > killing test !
> >
> > my command line is
> >
> > m68k-elf-gcc -m5200 -msep-data -Wl,-elf2flt -o test test.c -lc
>
> Command line looks ok, though the 5272 runs better with the -m5307 option
> as it's timings are closer to the 5307 than the 5200.
>
> > and compile and link without problems.
> >
> > This is the source code :
> >
> > Hinclude <stdio.h>
> >
> > char * teststr = "crashtest\r"; // That declaration crash
> > //char * teststr = "crashtest"; // That one not, difference = \r at the
> > end
> >
> > main()
> > {
> > //printf("the value is : ps",teststr);
> > return 0;
> > }
> >
> > Anybody with a clue ?
>
> Something strange going on here. Try
>
> char * teststr = "crashtest\r"; // That declaration crash
> main()
> {
> //printf("the value is : ps",teststr);
> exit(0);
> }
>
> If that fails send the output of "flthdr test" and perhaps the test binary.
> Try the -m5307 though I doubt it will do anything,
>
> Cheers,
> Davidm
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:45 EDT