Stack Considerations.
Posted: Mon Sep 11, 2006 10:06 am
Hey guys, Im just curious.
The Kernel Binary doesnt just take up the room ... that it is on disk, right?
I mean, it has DATA / RDATA / BSS Segments right?
So, 0x8000 (my kernel location) + KERNEL_FILESIZE = Not space I can overwrite? (So, I couldnt place my stack (0x8000 + KSIZE)+0x1000 )
Im trying to make a 4KiB stack for the Kernel, so far - the Kernel Stack is at 0x20000. Seems way too high up, id rather relocate it somewhere that makes more sense. Thats closer to the kernel, so all that space between isnt wasted.
Any advice?
~Zeii.
The Kernel Binary doesnt just take up the room ... that it is on disk, right?
I mean, it has DATA / RDATA / BSS Segments right?
So, 0x8000 (my kernel location) + KERNEL_FILESIZE = Not space I can overwrite? (So, I couldnt place my stack (0x8000 + KSIZE)+0x1000 )
Im trying to make a 4KiB stack for the Kernel, so far - the Kernel Stack is at 0x20000. Seems way too high up, id rather relocate it somewhere that makes more sense. Thats closer to the kernel, so all that space between isnt wasted.
Any advice?
~Zeii.