You copied the Doc URL to your clipboard.

--hide=option[,option,...]

This option changes the symbol visibility property to mark selected symbols as hidden.

Restrictions

You must use --elf with this option.

Syntax

--hide=option[,option,...]

Where option is one of:

object_name::

All symbols in ELF objects with a name matching object_name.

object_name::symbol_name

All symbols in ELF objects with a name matching object_name and also a symbol name matching symbol_name.

symbol_name

All symbols with a symbol name matching symbol_name.

You can:

  • use wildcard characters ? and * for symbolic names in symbol_name and object_name arguments

  • specify multiple options in one --hide option followed by a comma-separated list of arguments.