- Published on
Investigation · Part 10 of 20 · From source to a running process
The Code That Runs Before main: _start, Constructors and init_array
With gdb I followed what calls main, where constructors are called from, and in which order init_array and fini_array run. A program without libc starts in 56 microseconds instead of 143, and Rust std has its own function in init_array.