OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Jun 20, 2018 12:19 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Just to confirm: Is this how ELF files should be readed?
PostPosted: Sat Jun 09, 2018 11:03 am 
Offline
Member
Member
User avatar

Joined: Mon Dec 28, 2015 11:11 am
Posts: 372
Location: Serbia, corruption and crime heaven...
Kernel specifically.
Just to be sure, is this okay?:
Bootloader reads the kernel file;
Then it finds N program header tables specified by ELF header and copies each one with type=1 to p_vaddr;
And then moves the instruction pointer (jumps) to the entry point specified by the ELF header.
If I'm wrong somewhere, can you please tell me what I'm doing wrong and how are they supposed to be read?
Can I just read the kernel file at image base address and jump to the entry point?

_________________
Website


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group