Hi.
I'm trying to make my Sun Sparc1 be a cross-compiler for Linux. I seem to have
gotten that part working, but in order to compile the Linux kernel, I need to
compile ld86 and as86... However, I've noticed that __strtoul is undefined,
so I went and got the Linux libc (4.4.1) source and compiled the strtoul.c
into an object, and attempted to link it into ld86. However, this doesn't
seem to work, being that I still have some undefined objects...
% gmake
gcc dumps.o io.o ld.o readobj.o table.o typeconv.o writebin.o strtoul.o -o ld
ld: Undefined symbol
___ctype_b
___ctype_toupper
collect: ld returned 2 exit status
gmake: *** [ld] Error 1
% nm -u strtoul.o
.udiv
.umul
.urem
___ctype_b
___ctype_toupper
_errno
I'm using gcc 2.4.5 under SunOS 4.1.1.
I know someone must have done this before. Can anyone help me out here?
I'm oh so close to being able to compile the Linux kernel on my Sparc...
Thanks!
me