12.2 --add_shared_references, --no_add_shared_references

Affects the behavior of the --sysv mode.

Usage

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.

Default

The default option is --no_add_shared_references.

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

Non-ConfidentialPDF file icon PDF versionARM DUI0474M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.