|
|
|
|
|
by neeeeees
1235 days ago
|
|
(Author here) Thanks for explaining this more succinctly than I can :) Just one nitpick: > decent amount of stuff that has to be done in main before you run _start should read > decent amount of stuff that has to be done in _start before you run main Analogously, cleanup code like running global destructors usually happens in _start/CRT after main returns, but I skipped that in the post for the sake of brevity. |
|
[0] https://github.com/torvalds/linux/tree/master/tools/include/...
[1] https://github.com/lpsantil/rt0/blob/master/src/lib/00_start...