2 ms·
> > A good linker will remove unused symbols. Additionally, a linker not be able to remove symbols that are unused at runtime but are still (transtively) refer
by account42 6y ago
> > A good linker will remove unused symbols.
Additionally, a linker not be able to remove symbols that are unused at runtime but are still (transtively) referenced statically. For memory mapped dynamic libaries those code pages will not be loaded unless needed.
For example, statically linking libstdc++ for any C++ program which uses iostreams (or anything else infected with std::locale) will mean including code to format and parse e.g. monetary amounts even if your program never uses this functionality.