You copied the Doc URL to your clipboard.


The HIDE command makes defined global symbols in the symbol table anonymous.


HIDE pattern [ ,pattern]



Is a string, optionally including wildcard characters, that matches zero or more defined global symbols. If pattern does not match any defined global symbol, the linker ignores the command. You cannot hide undefined symbols.


HIDE and SHOW can be used to make certain global symbols anonymous in an output image or partially linked object. Hiding symbols in an object file or library can be useful as a means of protecting intellectual property, as shown in Example 3. This example produces a partially linked object with all global symbols hidden, except those beginning with os_.

; steer.txt

; Hides all global symbols
; Shows all symbols beginning with 'os_'
SHOW os_*

Link this example with the command:

armlink --partial input_object.o --edit steer.txt --o partial_object.o

You can be link the resulting partial object with other objects, provided they do not contain references to the hidden symbols. When symbols are hidden in the output object, SHOW commands in subsequent link steps have no effect on them. The hidden references are removed from the output symbol table.

See also


Using the Linker: