You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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)
7 years ago
..
README.md fix a small spell problem 9 years ago
contribute.md Make all Github links reference a specific commit 7 years ago
how_kernel_compiled.md Make all Github links reference a specific commit 7 years ago
linkers.md Make all Github links reference a specific commit 7 years ago
program_startup.md Improved picture of stack layout 7 years ago

README.md

Misc

This chapter contains parts which are not directly related to the Linux kernel source code and implementation of different subsystems.