-
-
Notifications
You must be signed in to change notification settings - Fork 604
Dynamic Linker
WALDEMAR KOZACZUK edited this page Nov 9, 2019
·
31 revisions
OSv is made of many components but the dynamic linker is probably the most essential one as it ties all other components together and is responsible for bootstrapping an application. In essence, it involves locating ELF file on the filesystem, loading it into memory using mmap()
, processing its headers and segments to relocate symbols, configuring TLS, executing its init functions, loading any dependant ELF objects and finally starting the app. Please note that unlike Linux, the dynamic linker is an integral part of the OSv kernel. Most of the dynamic linker core is located in core/elf.cc
, arch/<arch>/arch-elf.cc
and core/app.cc
.