I'm trying to get the bios to compile, and I'm encountering a few
problems. I'll post a patch once I've figured out all of them, but in the
meantime, I'll need some help:
- Some pieces of the bios are including stdlib.h and net/if_arp.h, both
of them absent from the archive. I've built a striped down stdlib.h (just
defining NULL) and a striped down if_arp.h from glibc 2.1 one, and so
far, it seems to compile.
- It won't link, I got bunch of errors like:
init/crt0.o(.text+0x204): undefined reference to `_start_main'
init/crt0.o(.text+0x204): relocation truncated to fit: R_ARM_PC24 _start_main
The toolchain is an arm-linux (elf) egcs 1.1.2 with
egcs-1.1.2-arm-diff-990325 applied, and a binutils-2.9.1.0.19a (with also
a diff I found on one of the ARM sites). This same toolchain seems to
compile the kernel correctly. I want ELF since I plan to adapt mkaif to
elf (and make it endian-neutral, I'm cross-compiling on a big endian
platform).
I did try to build an "aout" toochain from the same source, but whatever
I do, I end up with missing includes during gcc compile (unistd.h, and
one other I don't remember).
Note also that some of the CFLAGS used are causing warnings about
obsolecence, '-m6' is deprecated, and -Wa,-msa110 is not reccognised, but
I don't think this is a real problem for now. I replaced -m6 by -mapcs-32
in the makefile like the warning says, but this may be wrong, I don't know.
As you can see, I'm new to the gcc toolchain environement, I really don't
know how to fix the link issue, some explanation would be greatly
appreciated. I beleive I can figure out most of the other problems
myself, including elf loading.
--
E-Mail: <mailto:[EMAIL PROTECTED]>
BenH. Web : <http://calvaweb.calvacom.fr/bh40/>
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]