This is the mail archive of the
mailing list for the newlib project.
libgloss and newlib
- To: newlib at sourceware dot cygnus dot com
- Subject: libgloss and newlib
- From: Mark Pulver <mpulver at research dot canon dot com dot au>
- Date: Tue, 28 Sep 1999 11:12:06 +1000 (EST)
(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.