1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-11-19 22:48:13 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
diekmann
391030ed94 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-09-21 21:52:41 +03:00
Cornelius Diekmann
1972d27d76 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-09-21 21:52:09 +03:00
Chandan Rai
0851b0fa4a corrected typos 2017-09-21 21:45:09 +03:00
PaulCher
1727112b64 Fixing broken links and links pointing to the wrong part of code. Fixed 2017-04-26 12:14:32 +03:00
proninyaroslav
1e47e02143 Исправление ссылок 2017-01-05 22:04:58 +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