[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
prom-libc test rig
In order to see what's missing, I added a 'test' target to the Makefile. That
would compile test.c to test.o and then link it with libc.a. Naturally _start
was missing, so I added crt/Crt0.c and linked that in.
With the formalities out of the way, everything missing still, is what needs
to be added. Since test.c is basically "hello world", write is one of the
expected missing functions. The missing __progname in assert.c I added to
Crt0.c.
The few things that bother me are that stdin, stdout, and stderr are missing.
These belong to stdio, and not in the kernel.
Also vsnprintf wants __udivdi3 and __umoddi3. These are probably gcc support
functions. I don't know where they normally are, but I know how to find out.
My goal is to be able to link against prom-libc as a replacement for glibc in
order to be able to test it.
Is there any merit in what I am doing, or am I wasing my time?
Cheers,
Remco
--
Remco Treffkorn (RT445)
HAM DC2XT
remco@rvt.com (831) 685-1201