Page 2 of 2

Posted: Sat Feb 23, 2008 12:51 pm
by Kieran
i have added an entry point and the problem still ocurs

Posted: Sat Feb 23, 2008 1:05 pm
by Wave
Kieran wrote:i have added an entry point and the problem still ocurs
Binary files don't have a format so grub can find the entry point, so it always starts at the start of your file (maybe there's an option for entry point in the a.out cludge?). You should be sure your real entry point is at the start of your file together with the multiboot header.

Posted: Sat Feb 23, 2008 1:10 pm
by nick8325
Yes, the multiboot header specifies the entry point (as well as BSS size, etc.).

Edit: to the OP, did you see my suggestion
Are you using GRUB? If so, the multiboot header has to be in the first 8KB of the kernel. You could try moving INPUT("start.o") to the very top of the linker script.
? As you posted your reply only a minute after I posted mine, you might have missed it.

Posted: Sun Feb 24, 2008 4:31 am
by Kieran
yes nick, i did see your reply, i have made sure that my start code is in the first 8kb of the code.
It now compiles fine.

Thankyou all for your help