Problem when linking the Bare Bones C kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
Marcus
Posts: 4
Joined: Wed Dec 21, 2011 10:23 am

Problem when linking the Bare Bones C kernel

Post 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!
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Problem when linking the Bare Bones C kernel

Post by Combuster »

Ooh a FAQ!

GCC Cross-Compiler (And it's in the tutorial)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked