8.97 --hide_all, --no_hide_all

Controls symbol visibility when building SVr4 shared objects.


Use --no_hide_all to force the compiler to use STV_DEFAULT visibility for all extern variables and functions if they do not use __declspec(dll*) or __attribute__((visibility("visibility_type"))). This also forces them to be pre-emptible at runtime by a dynamic loader.

When building a System V or ARM Linux shared library, use --no_hide_all together with --apcs /fpic.

Use --hide_all to set the visibility to STV_HIDDEN, so that symbols cannot be dynamically linked.


The default is --hide_all.

Related reference
8.6 --apcs=qualifier...qualifier
10.51 __attribute__((visibility("visibility_type"))) function attribute
10.70 __attribute__((visibility("visibility_type"))) variable attribute
10.23 __declspec(dllexport)
10.24 __declspec(dllimport)
8.92 --gnu_defaults
8.193 --visibility_inlines_hidden
Related information
--symver_script=filename linker option
Symbol visibility for BPABI models
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.