| |||
| Home > Directives Reference > Miscellaneous directives > KEEP | |||
The KEEP directive instructs the assembler to
retain local symbols in the symbol table in the object file.
KEEP{symbol}
where:
symbolis the name of the local symbol to keep. If is
not specified, all local symbols are kept except register-relative
symbols.symbol
By default, the only symbols that the assembler describes in its output object file are:
exported symbols
symbols that are relocated against.
Use KEEP to preserve local symbols that can be
used to help debugging. Kept symbols appear in the ARM debuggers
and in linker map files.
KEEP cannot preserve register-relative symbols
(see MAP).