This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgloss and newlib



(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
libgloss?

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.

Any hints?

Mark

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]