What Does the Linker Actually Do for Us?
summary
Covers how linkers build executables from C/C++ object files on Linux/ELF: contents of object files (sections, symbols, relocations), how code and data are arranged, how the OS runs a program and how that influences linking, and C++-specific issues like template instantiation and inline functions. Demonstrations use ELF examples and tooling to inspect object files and executables.
AI-written summary · about
related talks
48mMy Little Object File: How Linkers Implement C++
01h 02mHow Linux Elf Symbols Work and How They Are Used in C++ and C Programming
01h 23mC++ Linkers and the One Definition Rule
01h 02mHow symbols work and why we need them
59m“C++ in Elvenland”
01h 04mThe Bits Between the Bits: How We Get to main()
01mTalk Preview: How Symbols Work and Why We Need Them
01h 03mBack to Basics: Compiling and Linking
