Dynamic linker
A dynamic linker is an operating system feature that loads and links dynamic libraries for an executable at runtime, before or while it is running.[src] Although the details vary by operating system, typically, a dynamic linker copies the content of each library from persistent storage to RAM, fills jump tables and relocates pointers.[src] Linking is often referred to as a process that is performed when the executable is compiled, while a dynamic linker is a special part of an operating system that loads external shared libraries into a running process and then binds those shared libraries dynamically to the running process.[src] This approach is also called late linking.[src]
A dynamic linker is an operating system feature that loads and links dynamic libraries for an executable at runtime, before or while it is running.[src] Although the details vary by operating system, typically, a dynamic linker copies the content of each library from persistent storage to RAM, fills jump tables and relocates pointers.[src] Linking is often referred to as a process that is performed when the executable is compiled, while a dynamic linker is a special part of an operating system that loads external shared libraries into a running process and then binds those shared libraries dynamically to the running process.[src] This approach is also called late linking.[src] ===Unix-like systems using ELF, and Darwin-based systems=== In most Unix-like systems, most of the machine code that makes up the dynamic linker is actually an external executable that the operating system kernel loads and executes first in a process address space newly constructed as a result of calling exec or posix_spawn functions.[src] At link time, the path of the dynamic linker that should be used is embedded into the executable image.[src] When an executable file is loaded, the operating system kernel reads the path of the dynamic linker from it and then attempts to load and execute this other executable binary; if that attempt fails because, for example, there is no file with that path, the attempt to execute the original executable fails.[src] The dynamic linker then loads the initial executable image and all the dynamically-linked libraries on which it depends and starts the executable.[src] As a result, the pathname of the dynamic linker is part of the operating system's application binary interface.[src] Dynamic Linking in Linux and Windows, part one, Symantec.com Anatomy of Linux dynamic libraries, IBM.com[src]
14 sentences · 14 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Dynamic linker." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dynamic-linker. Accessed 29 November 2026.
Chicago
"Dynamic linker." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/dynamic-linker.
APA
encyclopegia.org. (2026). Dynamic linker. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/dynamic-linker
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON