| |||
| Home > Accessing Image Symbols > Hiding and renaming global symbols > Steering file commands | |||
The following steering file commands enable you to rename, hide, and show symbols in the symbol table.
The RENAME command renames defined and undefined global symbol names.
RENAME pattern {AS replacement_pattern} [ ,pattern AS replacement_pattern] *
where:
patternIs a string, optionally including wildcard characters,
that matches zero or more global symbols. If does
not match any global symbol, the linker ignores the command. The
operand can match both defined and undefined symbols.pattern
replacement_patternIs a string, optionally including wild card characters,
to which the symbol is to be renamed. Wild cards must have a corresponding
wild card in .
The characters matched by the pattern wild
card are substituted for the pattern wildcard. replacement_pattern
For example, for a symbol named func1:
RENAME f* AS my_f*
renames func1 to my_func1.
You cannot rename a symbol to a symbol name that already exists, even if the target symbol name is being renamed itself. Only one wildcard character (either * or ?) is permitted in RENAME.
armlink processes the steering file before doing any replacements.
You cannot, therefore, use RENAME A AS B on line
1 and then RENAME B AS A on line 2.
The HIDE command makes defined global symbols in the symbol table anonymous.
The SHOW command makes global symbols visible that were previously hidden with the HIDE command. This command is useful if you want to un-hide a specific symbol that has been hidden using a HIDE command with a wild card.