libgloss and newlib
Mon Sep 27 18:12:00 GMT 1999
(I've already sent this to crossgcc list)
I'm trying to build an embedded system using a GNU tool chain
on a StrongArm board (Brutus). I have no problem running under gdb
as IO is handled via SWI to the Angel monitor.
Reading the "porting" info pages in newlib, mentions that libgloss
should be used to embed the system. I have code I can used for crt0.o
and inbyte() and outbyte(), but how do I hook them into the
existing newlib (libc.a) code. Do I put them into my owm libgloss.a?
How does the linker choose the my crt0.o not the one in libc.a? Is
where a "configure" flag I require to rebuild newlib to be used with
Ideally, I would like stdin/stdout to use a serial port, and stderr
to write to the LCD. I have code that does this, I just don't know
how to use it with newlib.
More information about the Newlib