Among ELFs and DWARFs
summary
Examines ELF binaries to diagnose startup cost, resident memory and plugin load failures by reading symbol tables, relocations and sections rather than source. Shows tools and commands: nm/c++filt/readelf to list and demangle symbols, ldd/otool/dependency walker to emulate loader search, readelf/objdump to inspect PLT/GOT and relocations, elf-dissector to visualize rw-data. Demonstrates a real-world bug seen twice where PLT-generated function pointers break Qt signal/slot lookup and explains the fix: build everything with position independent code (-fPIC) and inspect relocations; shows GDB indexing giving 5–10x attach speedups.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:08ELFs
- 5:05Linker
- 7:39Loading Errors
- 11:29Plugins
- 14:07Runtime Problems
- 17:41Safety Measures
- 19:30Memory Consumption
- 23:28GDB Index
- 24:11Questions
related talks
59m“C++ in Elvenland”
01h 02mHow symbols work and why we need them
01h 02mHow Linux Elf Symbols Work and How They Are Used in C++ and C Programming
01h 04mThe Bits Between the Bits: How We Get to main()
01mTalk Preview: How Symbols Work and Why We Need Them
48mMy Little Object File: How Linkers Implement C++
01h 29mModern Linux C++ Debugging Tools - Under the Covers
35mRethinking Linux tools with Compact Debuginfo Formats
