~/talk

How symbols work and why we need them

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [linux-and-operating-systems]
slides:none on file

Shows how ELF on Linux implements C/C++ linkage with three symbol tables (symtab, dynsym and debug), how relocations let the linker fix calls, and why the compiler emits separate sections per weak/inline entity so the linker can discard duplicates; demonstrates building an executable that returns 42, using objdump, nm, readelf and strip and GCC, and shows strip removing symbols causes an undefined reference; notes the surprising ~20 section headers in a tiny object file and explains weak and unique symbols and -fvisibility=hidden.

AI-written summary · about

  1. 0:00Symbols and purpose
  2. 3:56Global variables example
  3. 13:03Object file sections
  4. 20:49Linkage in C/C++
  5. 39:13Dynamic linking
  6. 51:13Symbol tables in libraries
  7. 55:06Program elements need symbols
  8. 1:00:02Summary of symbols
~/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.