kernel format

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator: Moderators

kernel format

Postby afdgdhfrtewdszs » Thu Mar 14, 2013 12:28 am

I would like to ask why do we have to(or choose to) compile kernel with pe or elf formats and we don't just compile it as flat binary format(pure binary). What are the steps required to compile and load kernel as elf format?
afdgdhfrtewdszs
 
Posts: 18
Joined: Tue Feb 01, 2011 6:25 pm

Re: kernel format

Postby sillentthought » Sun Mar 17, 2013 12:19 am

Well, lets think for a moment. Compiling as a flat binary would be nice, wouldn't it... We could just jump to the beginning of the file and start executing. Then again, we would be throwing away the benefits that PE's and ELF's give. You wouldn't be able to do any dynamic linking, as there wouldn't be any IAT's... long story short. You don't HAVE to, but it gives a useful, well defined, and easy to work with format for executable files.
sillentthought
 
Posts: 1
Joined: Sat Mar 03, 2012 9:51 am

Re: kernel format

Postby afdgdhfrtewdszs » Sun Mar 17, 2013 8:32 am

Thanks for the response, it just didn't cross my mind.
afdgdhfrtewdszs
 
Posts: 18
Joined: Tue Feb 01, 2011 6:25 pm


Return to Beginning OS Development

Who is online

Users browsing this forum: No registered users and 3 guests

cron