loading an ELF

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
shadowH3
Posts: 8
Joined: Tue Dec 15, 2009 1:04 am

loading an ELF

Post by shadowH3 »

ok, use I grub for the moment, however, am looking to move over to a custom bootloader.
(for various reasons)

All I have access to is the PE file layout to load a PE .EXE kernel.
I cant find anything on ELF. I have the libs, however, even translated to Pascal, they wont do me any good until I can load the pascal ELF kernel.

I have a working bootloader in assembly. I just need to figure out how to load the compiled kernel I already have.
Its in ELF format.

GRUB is nice, but it takes too much to figure out how to bomb back from PASCAL_MAIN to RM. I need to support this for APM poweroff and this is where GRUB gets in the way.I know how to exit the mainloop, its not without headahce, but entirely possible.I have the APM poweroff code already implemented.

My OS is not homework. Im not far from a filesystem. Im in school for hardware, not software. I actually plan on competing with current OSes like Ubuntu.(eventually). I code when am able, but Im only one guy. Haven't had much help lately.

Any hints?
(please keep it ON topic)
Hangin10
Member
Member
Posts: 162
Joined: Wed Feb 27, 2008 12:40 am

Re: loading an ELF

Post by Hangin10 »

shadowH3 wrote:I cant find anything on ELF.
You do know there exists a wiki, right?
The article on ELF is quite long, and even includes links to multiple specifications that probably even repeat information between them.
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: loading an ELF

Post by Combuster »

Any hints
Please check the forum rules, You already broke half of them:
Beginner Mistakes
Search before posting
Read the wiki, also before posting.
Make it easy for us to solve your problem
(please keep it ON topic)
Please don't give us all the reasons not to. Calm down, read through the links, try to apply them, then ask again (and in 90% of the cases, the last step isn't even necessary)
"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