--add_shared_references, --no_add_shared_references

This option affects the behavior of the --sysv mode. 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.

Note

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.

Show/hideDefault

The default option is --no_add_shared_references.

However, if you specify --arm_linux, the default option is --add_shared_references.

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0493E
Non-ConfidentialID071611