I'm starting to develop my kernel, but I get those
As I'm quite new on compiling on linux I think I did something wrong while ./configure or so...start.o:(.text+0x2d): undefined reference to `_kmain'
On the wiki there is a tutorial on how compiling gcc an binutils, but nothing for nasm (or at least i couldn find it...)
This is what I did:
I downloaded the nasm source code, untared it and cd into it's folder, then
Code: Select all
export PREFIX=/usr/cross
export TARGET=i586-elf
./configure --prefix=$PREFIX --target=$TARGET
make all
make install
export PATH=$PATH:$PREFIX/bin
$TARGET-nasm -f elf -o start.o start.asm
If I assembly it using
Code: Select all
nasm -f elf -o start.o start.asm
Thanks in advance