~/talk

Linker & Loader: The build process after-party

Talkat Core C++ 2023 · 2023-06-05..06-07· [c-and-cpp]
links:none on file
slides:none on file

Explains what the linker actually does on Linux/ELF: lays out code and data, resolves symbols, and applies relocations (PC‑relative fixups like the observed “-4” for a call). Demonstrates compiling separate .o files, inspecting them with objdump -d -r and nm, shows name‑mangling for overloaded C++ symbols, archives into lib.a, and runs the real linker via g++ -Wl,--wrap=goose_sound* to swap a symbol at link time — works for one case but highlights caveats with in‑library calls, objects, and virtual methods.

AI-written summary · about

  1. 0:00Introduction to linking
  2. 1:45The role of the linker
  3. 2:48Linker responsibilities
  4. 4:26Code demonstration
  5. 7:20Object file analysis
  6. 8:42Symbol mangling
  7. 12:21Relocation types
  8. 14:05Post-linking analysis
  9. 16:11Library archiving
  10. 17:30Compiler front-end
  11. 19:10Symbol tables and tips
  12. 21:26C++ linking complexities
  13. 23:25Link time optimization
  14. 25:15Shared libraries
  15. 26:56Symbol wrapping
  16. 29:42Hijacking caveats
  17. 33:07Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.