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 DUI0474M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.