Commit Graph

8 Commits

Author SHA1 Message Date
diekmann
9f269b41df Improved picture of stack layout
* Added dots around envp and argv since those are arrays of pointers.
  While argc and NULL are just 8B, argv and envp are of variable size,
  usually more than 8B. The dots visualize this.

* In the first image, moved rsp to point to argc. This is the initial
  stack and register layout at the beginning of _start. Only after libc
  popped the top of the stack into rsi, rsp will point to beginning of
  argv. (*)

(*)
I verified this by writing my own _start implementation:
  039ac7c03c/start.asm (L61)
2017-08-11 12:17:23 +02:00
Cornelius Diekmann
8dbc839a8a Language: Added articles. Content: exec* family
Language improvement: Added articles like `the`, `a`, ...

Content: The `exec*` family is a `C` wrapper, the syscall is usually only `execve`.
2017-08-10 18:36:59 +02:00
PaulCher
3a9e277b05 Fixing broken links and links pointing to the wrong part of code. Fixed
by replacing links to the fixed commit on github, not just to master.
2017-04-04 14:19:02 +03:00
mudongliang
678a137fa1 fix typos and semantics in program startup 2016-10-28 22:16:02 -04:00
cloud
ed157db372 fix typos 2016-09-11 15:09:12 +00:00
0xAX
1b8fcbef2f Update program_startup.md 2016-09-11 19:55:15 +06:00
0xAX
7df9f32334 Update program_startup.md 2016-09-11 19:53:49 +06:00
0xAX
2b1f7f5896 Create program_startup.md 2016-09-11 19:51:18 +06:00