Program loading, linking and dynamic libraries

Follow a program from its file to main through the dynamic loader, the library search, call slots, lazy binding and the failures that stop it early. Processes and threads · Operating systems.

The shell found the program and started it, yet a library error appeared and its first line never ran. Follow the loader that stopped it.

What you will learn

  • Trace a program file to its first line of code through the kernel and the dynamic loader
  • Say what a symbol, a slot and relocation are, and why programs share libraries
  • Place a loading failure after exec and before main

Lesson outline

  1. Why a program needs a loader
  2. From a program file to main
  3. Filling slots lazily
  4. When the loader cannot finish

14 minutes · 4 scenes · 0 predict checks · 9 quiz questions

The full lesson is available with Premium.