Skip to contentSkip to conversation

Executable file format, locating stack?

DISCUSSION Joshua Hudson 2 participants 2 messages Dec 1, 2007

lore
Share & tools
lore
#0 lore raw

Is there an executable file format that can specify things like where the stack ends up?
Yes, I really do care. I want to put the stack at the top of virtual address space rather than randomized.

#1 lore raw
Quoted 4 lines · On Sat, 1 Dec 2007 10:09:28 -0800 "Joshua Hudson" <[email protected]> wrote:

Is there an executable file format that can specify things like where the stack ends up?
Yes, I really do care. I want to put the stack at the top of virtual address space rather than randomized.

just set the personality with setarch if you don't want randomisation.

Why is it that you can't cope with randomization? You'll have SOME randomziation no matter what because each glibc compile will have a slightly different footprint on the stack before your app gets to it, as do the various environment variables and kernel AT_ variables.

Signature · 3 lines
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org