Page 2 of 2

Re: Help with linker on bare-bones

Posted: Thu Jul 03, 2008 5:20 pm
by suthers
http://www.osdever.net/tutorials/ch01.php
It;s really good, that's where I learn't to make mine, but to learn how to load from a file system, you'll have to study the docs...
Jules

Re: Help with linker on bare-bones

Posted: Thu Jul 03, 2008 5:53 pm
by Anubis208
Thank's, everyone, for the help.

Re: Help with linker on bare-bones

Posted: Thu Jul 03, 2008 6:30 pm
by midir
That method didn't work.
I get this when I link:
ld: warning: cannot find entry symbol _loader; defaulting to 00100000
is that normal?
Yes.... sorry I thought this would have been obvious. #-o In the code I posted the global label for the entry point was called _multiboot_entry, but in the linker.ld file in the tutorial it says ENTRY (_loader). Just change it to ENTRY (_multiboot_entry). It should still run though, since GRUB doesn't really care what the linker thinks is the entry point.

Re: Help with linker on bare-bones

Posted: Fri Jul 04, 2008 4:55 am
by Solar
midir wrote:(The tutorial is aimed primarily at those compiling on Linux).
Actually, when I wrote the tutorial it said in the introduction that it works fine under Windows if you followed the GCC Cross-Compiler tutorial first. Somehow that got lost in the meantime...