Help with linker on bare-bones

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.
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: Help with linker on bare-bones

Post 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
Anubis208
Posts: 8
Joined: Wed Jul 02, 2008 9:23 am

Re: Help with linker on bare-bones

Post by Anubis208 »

Thank's, everyone, for the help.
midir
Member
Member
Posts: 46
Joined: Fri Jun 13, 2008 4:09 pm

Re: Help with linker on bare-bones

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Help with linker on bare-bones

Post 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...
Every good solution is obvious once you've found it.
Post Reply