Page 1 of 1
			
				kernel format
				Posted: Thu Mar 14, 2013 12:28 am
				by afdgdhfrtewdszs
				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?
			 
			
			
				Re: kernel format
				Posted: Sun Mar 17, 2013 12:19 am
				by sillentthought
				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.
			 
			
			
				Re: kernel format
				Posted: Sun Mar 17, 2013 8:32 am
				by afdgdhfrtewdszs
				Thanks for the response, it just didn't cross my mind.