Does anyone have a resource on the initial stack layout of a loaded program on Linux on x86_64? I found http://asm.sourceforge.net/articles/startup.html …, but there's some other surprising stuff on the stack than argv and env variables
-
Show this thread
-
For example, a pointer to the ELF header
1 reply 0 retweets 0 likesShow this thread -
Seems like VDSO and dynamic loading stuff (even on a static executable) ?
2 replies 0 retweets 0 likesShow this thread
Replying to @l_zzi_
yeah, this is AFAIK e.g. how glibc knows where the vDSO is - you can see in the source that it reads the AT_SYSINFO_EHDR value into dl_sysinfo_dso and then parses ELF from there in dl_main()
8:12 PM - 6 Apr 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.