This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
How to port Newlib?
- From: "Matthew Iselin" <pcmattman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 10 Jul 2007 11:45:21 +1000
- Subject: How to port Newlib?
I'm working on a hobby OS and want to port a simple C library so that
I don't have to write the library myself (and so that eventually I can
port GCC and binutils and have the OS self-hosting).
The problem is, I don't know how to port newlib... I have a file
called syscalls.c that I wrote which has implementation outlined as
required in the documentation (libc.info, syscalls section) - every
function (_exit, _open, et al).
Where exactly do I put this code?
Also, when I built the library and tried to link with a simple "Hello
World" program (the out-of-the-box version, no changes at all) I got
"undefined reference to `printf'"... Any ideas?
I'm using newlib-1.15.0, with a Cygwin cross-compiler compiling for
target i586-elf.
--
The Mattise operating system: http://www.sourceforge.net/projects/mattise/