What is Dynamic linking?

Linking that loads and binds shared libraries at run time. Libraries can be shared between processes and fixed by replacement, but a compatible library must be present on the system.

Field: Linkers, Loaders & Executables

Dynamic linking in the explanations

Questions that mention Dynamic linking (6)

  1. What is an advantage of dynamic linking (shared libraries)?
  2. When dynamic linking uses lazy binding through the PLT (procedure linkage table), which statement is correct?
  3. Which describes the relocation a linker performs?
  4. What happens when the strip command is applied to an executable?
  5. What is the most suitable use of Linux's dlopen function (the counterpart of Windows LoadLibrary)?
  6. Disassembling an object file shows that an instruction calling the external function printf has a placeholder target such as 0. When is the correct value filled in?

Related terms

Dynamic linker Procedure linkage table (PLT) Relocation Linker Shared library Symbol table Object file Address space layout randomization (ASLR) BSS section Entry point

Back to the glossary