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

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