Linking Problem
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.Kieran wrote:i have added an entry point and the problem still ocurs
Conway's Law: If you have four groups working on a compiler, you'll get a 4-pass compiler.
Melvin Conway
Melvin Conway
Yes, the multiboot header specifies the entry point (as well as BSS size, etc.).
Edit: to the OP, did you see my suggestion
Edit: to the OP, did you see my suggestion
? As you posted your reply only a minute after I posted mine, you might have missed it.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.