4 ms·
"... I've seen two cases where shared libraries are used as executables. The first and most obvious example is the dynamic linker itself." Maybe it's obvious,
by zehhaxoxo 4y ago
"... I've seen two cases where shared libraries are used as executables.
The first and most obvious example is the dynamic linker itself."
Maybe it's obvious, but why is the linker itself a shared library? why would you want to link against it?
- rurban 4y agohe meant the loader, not the linker. ld.so is the most famous example, esp. for ldd
- HelloNurse 4y agoIt's even reasonable to call the loader a linker (a "dynamic" one), as its main job is updating addresses in jumps etc. to match the locations where it loads modules.
- fweimer 4y agoCertain symbols are provided by the dynamic linker, such as __tls_get_addr for certain forms of TLS access, or the __rseq_* symbols describing the restartable sequences area maintained by the kernel.