~/talk

Dynamic Linking On GNU Linux

Talkat emBO++ 2019 · 2019-03-14..03-17· [linux-and-operating-systems, c-and-cpp]
slides:none on file

Explains how GNU/Linux dynamic linking is actually performed by the dynamic loader (ld.so) at exec time and via runtime calls, showing tools and flags used to inspect and control it: readelf/ldd/objdump for inspection, LD_LIBRARY_PATH, rpath, LD_PRELOAD and ELF DT_RUNPATH for search order and overrides, and dlopen/dlsym with RTLD_NOW/LAZY and LOCAL/GLOBAL for runtime loading. Demonstrates overriding an allocator with LD_PRELOAD and loading plugins with dlopen, and notes that position‑independent code and symbol resolution semantics determine whether updates or overrides work as expected.

AI-written summary · about

  1. 0:00Introduction to dynamic linking
  2. 1:57Executable formats in Linux
  3. 3:03Compilation and linking basics
  4. 6:03Dynamic linking process
  5. 9:08Static vs dynamic linking
  6. 11:18Building dynamic libraries
  7. 12:29Dynamic linker options
  8. 14:21Dynamic linker's role
  9. 15:49Kernel and dynamic linking
  10. 18:04Difference between executables and shared objects
  11. 19:10Library search paths
  12. 20:14Shared object dependencies
  13. 21:22Common use cases for dynamic linking
  14. 22:30Configuring library paths
  15. 23:59Inspecting dynamic libraries
  16. 24:50Cross-platform linking challenges
  17. 27:05Loading shared libraries
  18. 28:13Function lookup in shared objects
  19. 30:28Context-dependent linking
  20. 31:56Function pointers in shared objects
  21. 33:25Dynamic memory and linking
  22. 34:34Library resolution order
  23. 35:39Advanced linker parameters
  24. 36:51Error handling in dynamic linking
  25. 37:55Production code and dynamic linking
  26. 39:00Plugin systems with dynamic libraries
~/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.