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:')
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
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