This commit is contained in:
tiif 2025-06-14 16:11:32 +08:00 committed by nora
parent 04f7cf7d27
commit ea2758dd10

View file

@ -58,7 +58,7 @@ A static library is just an `ar` (similar to `tar`) archive of object files.
### Dynamic Library (`lib*.so`) ### Dynamic Library (`lib*.so`)
Mainly called "shared library" in ELF, they are the oppose of static libraries. Mainly called "shared library" in ELF, they are the opposite of static libraries.
If you link against a shared library, the code from the shared library will *not* end up in the final binary. If you link against a shared library, the code from the shared library will *not* end up in the final binary.
Instead, the shared library will be loaded at runtime startup, and the dynamic linker will resolve the references to its symbols there. Instead, the shared library will be loaded at runtime startup, and the dynamic linker will resolve the references to its symbols there.
We will not go into dynamic linking and loading in this post, We will not go into dynamic linking and loading in this post,