The HIDE command makes defined global symbols in the symbol table anonymous.
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_
.
Link this example with the command:
armlink --partial input_object.o --edit steer.txt --o partial_object.o
You can 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.
- Concepts
Using the Linker:
- Reference