動的リンカとは?
動的リンカは、プログラムの起動時に実行され、必要な共有ライブラリを見つけてプロセスにマップし、それらの間の参照を解決するコンポーネントです。再配置を適用し、各外部呼び出しをロードされたライブラリ内の正しいアドレスへ接続します。一部の結び付けはロード時に先行して行われ、他は最初の使用時に遅延して行われます。
なぜ重要か
動的リンクにより、多くのプログラムが1つのライブラリのコピーを共有し、再コンパイルなしで更新を受け取れます。ここでの失敗は、起動時のライブラリ欠落やバージョン不一致のエラーとして現れます。
関連ガイド
What Is a Shared Object?A shared object is a library file loaded into memory at runtime and shared by multiple programs, rather than…
What Is Lazy Binding?Lazy binding defers resolving the address of an external function until the first time it is actually called,…
What Is Symbol Resolution?Symbol resolution is the linker step that matches each reference to a name, such as a function or variable, w…