8.49 --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.

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