[coldfire-gnu-discuss] Override printf
Bryan Kattwinkel
bryan at adapt4.com
Fri Jul 11 17:23:44 UTC 2008
-nodefaultlibs works for me.
in my linker script, the entire STARTUP and GROUP lines are commented
out, and there are some comments and lines related to "crt" that I don't
understand.
in my code, I have:
/* The GNU compiler converts printf of a single char into putchar,
* and printf of a constant string\n to puts of that string w/o \n.
* Since we are not using the C lib, provide these substitues.
*/
int putchar( int c )
{
out_char( c );
return c;
}
int puts( const char *s )
{
return printf( "%s\n", s );
}
More information about the coldfire-gnu-discuss
mailing list