ELF loading and the stack
Posted: Sun May 22, 2016 2:49 am
Hi everyone,
I've recently started getting back into OSDev, and I'm at a point with my kernel where I can start implementing ELF loading.
There's one thing that's tripping me up, and that's finding out information about the stack with regards to ELF files.
I need to know if it's the kernel's responsibility to allocate a stack to the process and ensure that it's valid and active, or whether a suitable stack is defined within the program headers and the _start function sets this up accordingly.
(I have searched to see if this topic has been posted previously, but didn't find anything. I apologise if it indeed has been asked already!)
Thanks,
NFSGamer
I've recently started getting back into OSDev, and I'm at a point with my kernel where I can start implementing ELF loading.
There's one thing that's tripping me up, and that's finding out information about the stack with regards to ELF files.
I need to know if it's the kernel's responsibility to allocate a stack to the process and ensure that it's valid and active, or whether a suitable stack is defined within the program headers and the _start function sets this up accordingly.
(I have searched to see if this topic has been posted previously, but didn't find anything. I apologise if it indeed has been asked already!)
Thanks,
NFSGamer