This option affects the behavior of the
If you specify
--add_shared_references when linking
an application the linker adds references from shared libraries.
The linker gives an undefined symbol error message if these references
are not defined by the application or by some other shared library.
These references can be satisfied by static archive format libraries.
A reference from a shared library can only be satisfied by a symbol definition with protected or default visibility, because these are the only symbols that can be exported into dynamic symbol tables. The linker gives an error message if the symbol reference is resolved by a symbol with hidden or internal visibility.