8.45 --default_definition_visibility=visibility

Controls the default ELF symbol visibility of extern variable and function definitions.

Syntax

--default_definition_visibility=visibility

Where:

visibility

is default, hidden, internal, or protected.

Usage

Use --default_definition_visibility=visibility to force the compiler to use the specified ELF symbol visibility for all extern variables and functions defined in the source file, if they do not use __declspec(dll*) or __attribute__((visibility("visibility_type"))). Unlike --hide_all, --no_hide_all, this does not affect extern references.

Default

By default, --default_definition_visibility=hidden.

Related reference
8.97 --hide_all, --no_hide_all
10.51 __attribute__((visibility("visibility_type"))) function attribute
10.70 __attribute__((visibility("visibility_type"))) variable attribute
Related information
Symbol visibility for BPABI models
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.