Re: Linux executable startup stack structure

2008-07-02 Thread Valery Reznic
Hi, Shachar. stack has following structure: argc argv envp AND auxv You can see auxv by running any dynamically linked executable as LD_SHOW_AUXV=1 program What you are looking for is AT_ENTRY Code that initialized user_entry is in the sysdeps/generic/dl-sysdep.c (look for 'case AT_ENTRY:')

Re: Linux executable startup stack structure

2008-07-02 Thread Gilad Ben-Yossef
Hi, Shachar Shemesh wrote: am looking for some documentation on the structure of the stack when an executable starts. I know the basics - argc, then argv, then envp. What I'm interested in is what's beyond that. I've tried googling, reading the sources in the kernel for fs/binfmt_elf.c and

Linux executable startup stack structure

2008-07-02 Thread Shachar Shemesh
Hi all. Sorry for the crosspost. I am looking for some documentation on the structure of the stack when an executable starts. I know the basics - argc, then argv, then envp. What I'm interested in is what's beyond that. I've tried googling, reading the sources in the kernel for fs/binfmt_elf.c