Re: [uCsimm] fprintf crashes

From: Ian Leonard (ileonard@ntlworld.com)
Date: Mon Apr 23 2001 - 06:14:09 EDT


On 2001.04.23 08:09:36 +0100 Ashwin wrote:
> Hello friends,
> I wrote small code which does nothing but use fprintf to print to
> stderr
> Here is the c code
> #include<stdio.h>
>
> main (int argc, char* argv[]) {
>
> int result;
>
> fprintf(stderr,"In Main\n");
>
> }
>
> my problem is that the same code works on 2.0.38.
> I compiled the same code for 2.4.x using m68k-elf gcc
> with command "m68k-elf-gcc -o fp.elf fp.c -Wl, -elf2flt"
> the code genrerated does not work and crashes while if the same code is
> compiled
> using m68k-pic-coff-gcc it works in the 2.4.x kernel .
> What might be the problem.
> Please help me out

I had a similar problem, in that printf ( "%s", "something"); didn't
produce the correct output. Floats also didn't work. I recompiled
uClib with -DHAVE_FLOAT (or similar - in the config file). This
resulted in not only floats working, but also the strings. I didn't
stop to find out why.

-- 
Ian Leonard                  
eMail: ileonard@ntlworld.com
Phone: +44 (0)1865 765273       Fax: +44 (0)1865 765280

Please ignore spelling and punctuation - I did. This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:43 EST