~/talk

How Linux Elf Symbols Work and How They Are Used in C++ and C Programming

Talkat C++ on Sea 2024 · 2024-07-02..07-05· [linux-and-operating-systems]
slides:none on file

Simple example compiles values.c and main.c into object files, links an executable that returns 42, and is inspected with objdump nm readelf strip to show machine code, relocations, symbol table entries and the effect of stripping. ELF uses three symbol tables (static, dynamic, debug); relocations in object files let the linker fill call targets; weak and unique bindings handle inline/templates; visibility (default/hidden) controls exported APIs for shared objects.

AI-written summary · about

  1. 0:00ELF symbols purpose
  2. 1:53Symbols and linking C/C++
  3. 10:27Investigating symbols OBJdump NM
  4. 19:52Linkage and symbol binding
  5. 29:01Weak and unique symbols
  6. 39:24Dynamic linking visibility
  7. 53:30Who gets a symbol
  8. 1:00:20Summary tools
~/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.