What is Static linking?

Linking that copies the code of the libraries used into the executable. It runs without the libraries present, but the file is larger and library fixes require rebuilding.

Field: Linkers, Loaders & Executables

Static linking in the explanations

Questions that mention Static linking (2)

  1. Which describes static linking?
  2. A dynamically linked program copied to another computer fails to start. What is the most likely cause?

Related terms

Linker Dynamic linker Address space layout randomization (ASLR) BSS section Dynamic linking Entry point Executable and Linkable Format (ELF) Global offset table Heap memory Linker script

Back to the glossary