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
Specify --symdefs=filename when you are doing a
final link for image1. The linker creates a symdefs file
filename.
Open filename in a text editor, remove any symbol
entries you do not want in the final list, and save the file.
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.
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.