这真没什么困难的,以前就回个一个类似的帖子。你查一下keil帮助里:
Linker User Guide -> Linker Command-line Options -> --symdefs=filename
9.118 --symdefs=filename
Creates a file containing the global symbol definitions from the output image.
Syntax
--symdefs=filename
where filename is the name of the text file to contain the global symbol definitions.
Default
By default, all global symbols are written to the symdefs file. If a symdefs file called filename already exists, the linker restricts its output to the symbols already listed in this file.
Note
If you do not want this behavior, be sure to delete any existing symdefs file before the link step.
Usage
If filename is specified without path information, the linker searches for it in the directory where the output image is being written. If it is not found, it is created in that directory.
You can use the symbol definitions file as input when linking another image.
以上是讲如何生成symbol文件,以下是讲如何使用symbol文件:
Related concepts
6.14 Access symbols in another image