GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

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. 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. 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. This approach is also called late linking. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

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. 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. 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. This approach is also called late linking. ===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. At link time, the path of the dynamic linker that should be used is embedded into the executable image. 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. The dynamic linker then loads the initial executable image and all the dynamically-linked libraries on which it depends and starts the executable. As a result, the pathname of the dynamic linker is part of the operating system's application binary interface. Dynamic Linking in Linux and Windows, part one, Symantec.com Anatomy of Linux dynamic libraries, IBM.com

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Dynamic linker". 1785032532. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1366082119

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·