make a kernel file I can load
Posted: Tue Jul 02, 2002 1:24 pm
I wrote a micro kernel to test, and I compiled it with
gcc -c kernel.c
then I linked it using the instructions on the OS-FAQ http://www.mega-tokyo.com/os/os-faq-kernel.html
ld -o kernel --oformat binary -Ttext 0x100000 kernel.o
But I get this error
ld: PE operation on non PE file.
I cant find what the problem is. Anyone know? Also, will this give me an elf kernel?
gcc -c kernel.c
then I linked it using the instructions on the OS-FAQ http://www.mega-tokyo.com/os/os-faq-kernel.html
ld -o kernel --oformat binary -Ttext 0x100000 kernel.o
But I get this error
ld: PE operation on non PE file.
I cant find what the problem is. Anyone know? Also, will this give me an elf kernel?