Basic elf loader
Posted: Sun Apr 18, 2004 12:31 pm
Im currently trying to get my bootloader to support the loading of elf files.
Basically I have a bootsector that is compiled to binary that loads into pmode and transfers control at 1Mb to a stub file that links together with my c files. I want this stub to be able to load the kernel in elf format from the disk.
I have looked at chris greese's loader in C, but its too complicated for me. Since this will be loaded in the stub, Im going to be writing it in 32-bit assembly. At the moment Im currently getting my help from the linkers and loaders online book and this site: http://www.muppetlabs.com/~breadbox/sof ... eensy.html
Does anybody have any experience with writing one?
Any help would be appreciated.
Basically I have a bootsector that is compiled to binary that loads into pmode and transfers control at 1Mb to a stub file that links together with my c files. I want this stub to be able to load the kernel in elf format from the disk.
I have looked at chris greese's loader in C, but its too complicated for me. Since this will be loaded in the stub, Im going to be writing it in 32-bit assembly. At the moment Im currently getting my help from the linkers and loaders online book and this site: http://www.muppetlabs.com/~breadbox/sof ... eensy.html
Does anybody have any experience with writing one?
Any help would be appreciated.