跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

How do I hide symbol information from a program?

Latest Updated:09/18/2015

Question:

How do I hide symbol information from a program?

Answer:

・Local symbols:
You can conceal information such as the static variable and the static function in a load module file (*.abs), library file (*.lib), relocatable file (*.rel), by specifying the link option –hide.

The local symbol information is rewritten as character strings of forms such as $CNCL_XX when the linkage map file (*.map) is output after linking to a library file created with the –hide option specified.
All local symbols in a program become targets for concealment when the –hide option is specified. Note that the symbol information will be output to a *.map file when the –hide option is specified.

・For external symbols:
External symbols can be changed to local symbols by specifying the -delete option. When a library file for which the –delete option was specified is linked, the project for which linkage is to proceed is unable to refer to those variables.
However, to conceal the formerly external symbols, designate the –hide option when generating the library file, since the external symbols will still be output to the link map file as local symbols.

Suitable Products
C/C++ Compiler Package for SuperH Family
C Compiler Package for RH850 Family
C/C++ Compiler Package for RX Family
C Compiler Package for RL78 Family