~/talk

“C++ in Elvenland”

Talkat CppCon 2018 · 2018-09-23..09-28· [linux-and-operating-systems]
links:none on file
slides:none on file

Walks a compiled C++ binary from ELF header through sections and symbols, and shows live demos with objdump and readelf and using objcopy embedding to pack data into object files. Explains concrete surprises: const globals can be optimized away, inline implies weak linkage which avoids multiple-definition errors, relocations act as runtime patches, LTO passes LLVM bitcode in sections, the BuildID and eh_frame is ubiquitous even for plain C, and how strip/remove-section flags change size but can break execution.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 10:50Embedding data in ELF
  3. 13:22Sections vs segments
  4. 17:01C++ symbol mangling
  5. 22:51Weak symbols and inline
  6. 33:43Link time optimization
  7. 35:11Debug sections and DWARF
  8. 36:42Exception handling
  9. 40:46RTTI and virtual tables
  10. 41:11Relocations and binary patching
  11. 42:43Static initialization
  12. 44:31GNU stack and protections
  13. 45:15Shrinking binaries
  14. 55:55Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.