Er.. ok so I'm making a small kernel in NASM. Everything went ok till I got till the compilation stage. I'm using an extremely simple bootloader (much simpler than GRUB) that just sets up protected mode and loads the kernel, so I didn't expect any problems. NASM keeps saying "error: binary output format does not support external references." But that's bull because I've not specified binary output format! kernel.asm:
[bits 32] ; hey, we're in Protected Mode
[global start]
[extern _kernel_main] ; always add a "_" in front of a C function to call it
start:
call _kernel_main
jmp $ ; halt
kernel.c:
Can someone please help??