Re:Where do argc and argv come from?
by brandmeyer on Monday August 10, 2020 @07:07PM
(#24115204)
Along the same vein, "How to Write Shared Libraries" by Ulrich Drepper goes into much more detail than you might expect given the title.
I jumped straight into Chapter 7: Linking and learned so much that I read a bunch of other chapters for the fun of it. E.g., Chapter 7 covered that the `_start` symbol mentioned in this post is just a symbol in your executable that the Linux executable loader knows to jump to, but it's not the only special symbol!
The chapter on linking also covered how loading and linking dynamic/shared libraries works, which was also really cool. I wrote up some of the things I learned about that stuff too.[2]
[1] http://www.csapp.cs.cmu.edu/
[2] https://blog.jez.io/linkers-ruby-c-exts/