Keil Logo

Outputting a subset of the global symbols

6.5.2 Outputting a subset of the global symbols

You can use a symdefs file to output a subset of the global symbols to another application.

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.
This example uses an application image1 containing symbols that you want to expose to another application using a symdefs file.

Procedure

  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 to create image1 after one or more objects have changed.
    You can use the symdefs file to link additional applications.
Non-ConfidentialPDF file icon PDF versionARM DUI0377H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.