You copied the Doc URL to your clipboard.

Outputting a subset of the global symbols

By default, all global symbols are written to the symdefs file. When a symdefs file exists, the linker uses its contents to restrict the output to a subset of the global symbols.

For an application image1 containing symbols that you want to expose to another application using a symdefs file:

  1. Specify --symdefs=filename when you are doing a final link for image1. The linker creates a symdefs file filename.

  2. Open filename in a text editor, remove any symbol entries you do not want in the final list, and save the file.

  3. Specify --symdefs=filename when you are doing a final link for image1.

    You can edit filename at any time to add comments and link image1 again. For example, to update the symbol definitions after one or more objects used to create image1 have changed.

You can now use the symdefs file to link additional applications.

See also

Concepts
Reference

armlink Reference Guide:

Was this page helpful? Yes No