Page 1 of 1

Problem when linking the Bare Bones C kernel

Posted: Thu Dec 22, 2011 5:06 pm
by Marcus
When I am compiling the kernel, everything works except the linking. I followed the steps, and everything works nicely but when I reach the linking, I type

Code: Select all

ld -T linker.ld -o kernel.bin loader.o kernel.o
and it gives me an error.
I have a screenshot here:
Image
As for loader.s, I used the GAS code on the wiki.

Anything will help, thank you!

Re: Problem when linking the Bare Bones C kernel

Posted: Thu Dec 22, 2011 5:47 pm
by Combuster
Ooh a FAQ!

GCC Cross-Compiler (And it's in the tutorial)